iML1515 2021-10-15 19:00
Independent Section Contains tests that are independent of the class of modeled organism, a model's complexity or types of identifiers that are used to describe its components. Parameterization or initialization of the network is not required. See readme for more details.

Consistency


Annotation - Metabolites


Annotation - Reactions


Annotation - Genes


Annotation - SBO Terms





Total Score
91%
Score per Category
0%10%20%30%40%50%60%70%80%90%100%scoreconsistencyannotation_metannotation_rxnannotation_geneannotation_sbosection
Specific Section Covers general statistics and specific aspects of a metabolic network that are not universally applicable. See readme for more details.
SBML
Basic Information
Metabolite Information
Reaction Information
Gene-Protein-Reaction (GPR) Associations
Biomass
Energy Metabolism
Network Topology
Matrix Conditioning
Experimental Data Comparison
Misc. Tests
Environment
Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,e){for(var n,r=0,i=t.length;r=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),u=-1,c=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++u0)for(var n,r,i=new Array(n),o=0;ox}_.mouse("drag")}function C(){Object(i.select)(i.event.view).on("mousemove.drag mouseup.drag",null),Object(o.yesdrag)(i.event.view,n),Object(a.default)(),_.mouse("end")}function E(){if(h.apply(this,arguments)){var t,e,n=i.event.changedTouches,r=m.apply(this,arguments),o=n.length;for(t=0;t=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,u=i180||n<-180?n-360*Math.round(n/360):n):Object(r.default)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?(i=e,o=n,a=t,i=Math.pow(i,a),o=Math.pow(o,a)-i,a=1/a,function(t){return Math.pow(i+t*o,a)}):Object(r.default)(isNaN(e)?n:e);var i,o,a}}function s(t,e){var n=e-t;return n?i(t,n):Object(r.default)(isNaN(t)?e:t)}},"./node_modules/d3-interpolate/src/constant.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){return function(){return t}}},"./node_modules/d3-interpolate/src/cubehelix.js":function(t,e,n){"use strict";n.r(e),n.d(e,"cubehelixLong",function(){return a});var r=n("./node_modules/d3-color/index.js"),i=n("./node_modules/d3-interpolate/src/color.js");function o(t){return function e(n){function o(e,o){var a=t((e=Object(r.cubehelix)(e)).h,(o=Object(r.cubehelix)(o)).h),s=Object(i.default)(e.s,o.s),u=Object(i.default)(e.l,o.l),c=Object(i.default)(e.opacity,o.opacity);return function(t){return e.h=a(t),e.s=s(t),e.l=u(Math.pow(t,n)),e.opacity=c(t),e+""}}return n=+n,o.gamma=e,o}(1)}e.default=o(i.hue);var a=o(i.default)},"./node_modules/d3-interpolate/src/date.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){var n=new Date;return e-=t=+t,function(r){return n.setTime(t+e*r),n}}},"./node_modules/d3-interpolate/src/hcl.js":function(t,e,n){"use strict";n.r(e),n.d(e,"hclLong",function(){return a});var r=n("./node_modules/d3-color/index.js"),i=n("./node_modules/d3-interpolate/src/color.js");function o(t){return function(e,n){var o=t((e=Object(r.hcl)(e)).h,(n=Object(r.hcl)(n)).h),a=Object(i.default)(e.c,n.c),s=Object(i.default)(e.l,n.l),u=Object(i.default)(e.opacity,n.opacity);return function(t){return e.h=o(t),e.c=a(t),e.l=s(t),e.opacity=u(t),e+""}}}e.default=o(i.hue);var a=o(i.default)},"./node_modules/d3-interpolate/src/hsl.js":function(t,e,n){"use strict";n.r(e),n.d(e,"hslLong",function(){return a});var r=n("./node_modules/d3-color/index.js"),i=n("./node_modules/d3-interpolate/src/color.js");function o(t){return function(e,n){var o=t((e=Object(r.hsl)(e)).h,(n=Object(r.hsl)(n)).h),a=Object(i.default)(e.s,n.s),s=Object(i.default)(e.l,n.l),u=Object(i.default)(e.opacity,n.opacity);return function(t){return e.h=o(t),e.s=a(t),e.l=s(t),e.opacity=u(t),e+""}}}e.default=o(i.hue);var a=o(i.default)},"./node_modules/d3-interpolate/src/lab.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return o});var r=n("./node_modules/d3-color/index.js"),i=n("./node_modules/d3-interpolate/src/color.js");function o(t,e){var n=Object(i.default)((t=Object(r.lab)(t)).l,(e=Object(r.lab)(e)).l),o=Object(i.default)(t.a,e.a),a=Object(i.default)(t.b,e.b),s=Object(i.default)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=o(e),t.b=a(e),t.opacity=s(e),t+""}}},"./node_modules/d3-interpolate/src/number.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return e-=t=+t,function(n){return t+e*n}}},"./node_modules/d3-interpolate/src/object.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-interpolate/src/value.js");e.default=function(t,e){var n,i={},o={};null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={});for(n in e)n in t?i[n]=Object(r.default)(t[n],e[n]):o[n]=e[n];return function(t){for(n in i)o[n]=i[n](t);return o}}},"./node_modules/d3-interpolate/src/quantize.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){for(var n=new Array(e),r=0;rl&&(s=e.slice(l,s),p[d]?p[d]+=s:p[++d]=s),(n=n[0])===(a=a[0])?p[d]?p[d]+=a:p[++d]=a:(p[++d]=null,f.push({i:d,x:Object(r.default)(n,a)})),l=o.lastIndex;return l180?c+=360:c-u>180&&(u+=360),m.push({i:l.push(o(l)+"rotate(",null,i)-2,x:Object(r.default)(u,c)})):c&&l.push(o(l)+"rotate("+c+i),d=a.skewX,p=s.skewX,f=h,d!==p?m.push({i:f.push(o(f)+"skewX(",null,i)-2,x:Object(r.default)(d,p)}):p&&f.push(o(f)+"skewX("+p+i),function(t,e,n,i,a,s){if(t!==n||e!==i){var u=a.push(o(a)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(r.default)(t,n)},{i:u-2,x:Object(r.default)(e,i)})}else 1===n&&1===i||a.push(o(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,s.scaleX,s.scaleY,h,m),a=s=null,function(t){for(var e,n=-1,r=m.length;++n1e-6)if(Math.abs(d*u-c*l)>1e-6&&o){var f=n-a,h=i-s,m=u*u+c*c,g=f*f+h*h,y=Math.sqrt(m),_=Math.sqrt(p),v=o*Math.tan((r-Math.acos((m+p-g)/(2*y*_)))/2),b=v/_,x=v/y;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*l)+","+(e+b*d)),this._+="A"+o+","+o+",0,0,"+ +(d*f>l*h)+","+(this._x1=t+x*u)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,a,s,u){t=+t,e=+e;var c=(n=+n)*Math.cos(a),l=n*Math.sin(a),d=t+c,p=e+l,f=1^u,h=u?a-s:s-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+d+","+p:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-p)>1e-6)&&(this._+="L"+d+","+p),n&&(h<0&&(h=h%i+i),h>o?this._+="A"+n+","+n+",0,1,"+f+","+(t-c)+","+(e-l)+"A"+n+","+n+",0,1,"+f+","+(this._x1=d)+","+(this._y1=p):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=r)+","+f+","+(this._x1=t+n*Math.cos(s))+","+(this._y1=e+n*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.default=s},"./node_modules/d3-selection/src/constant.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){return function(){return t}}},"./node_modules/d3-selection/src/create.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/creator.js"),i=n("./node_modules/d3-selection/src/select.js");e.default=function(t){return Object(i.default)(Object(r.default)(t).call(document.documentElement))}},"./node_modules/d3-selection/src/creator.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/namespace.js"),i=n("./node_modules/d3-selection/src/namespaces.js");e.default=function(t){var e=Object(r.default)(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===i.xhtml&&e.documentElement.namespaceURI===i.xhtml?e.createElement(t):e.createElementNS(n,t)}})(e)}},"./node_modules/d3-selection/src/index.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/create.js");n.d(e,"create",function(){return r.default});var i=n("./node_modules/d3-selection/src/creator.js");n.d(e,"creator",function(){return i.default});var o=n("./node_modules/d3-selection/src/local.js");n.d(e,"local",function(){return o.default});var a=n("./node_modules/d3-selection/src/matcher.js");n.d(e,"matcher",function(){return a.default});var s=n("./node_modules/d3-selection/src/mouse.js");n.d(e,"mouse",function(){return s.default});var u=n("./node_modules/d3-selection/src/namespace.js");n.d(e,"namespace",function(){return u.default});var c=n("./node_modules/d3-selection/src/namespaces.js");n.d(e,"namespaces",function(){return c.default});var l=n("./node_modules/d3-selection/src/point.js");n.d(e,"clientPoint",function(){return l.default});var d=n("./node_modules/d3-selection/src/select.js");n.d(e,"select",function(){return d.default});var p=n("./node_modules/d3-selection/src/selectAll.js");n.d(e,"selectAll",function(){return p.default});var f=n("./node_modules/d3-selection/src/selection/index.js");n.d(e,"selection",function(){return f.default});var h=n("./node_modules/d3-selection/src/selector.js");n.d(e,"selector",function(){return h.default});var m=n("./node_modules/d3-selection/src/selectorAll.js");n.d(e,"selectorAll",function(){return m.default});var g=n("./node_modules/d3-selection/src/selection/style.js");n.d(e,"style",function(){return g.styleValue});var y=n("./node_modules/d3-selection/src/touch.js");n.d(e,"touch",function(){return y.default});var _=n("./node_modules/d3-selection/src/touches.js");n.d(e,"touches",function(){return _.default});var v=n("./node_modules/d3-selection/src/window.js");n.d(e,"window",function(){return v.default});var b=n("./node_modules/d3-selection/src/selection/on.js");n.d(e,"event",function(){return b.event}),n.d(e,"customEvent",function(){return b.customEvent})},"./node_modules/d3-selection/src/local.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return i});var r=0;function i(){return new o}function o(){this._="@"+(++r).toString(36)}o.prototype=i.prototype={constructor:o,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},"./node_modules/d3-selection/src/matcher.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){return function(){return this.matches(t)}}},"./node_modules/d3-selection/src/mouse.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/sourceEvent.js"),i=n("./node_modules/d3-selection/src/point.js");e.default=function(t){var e=Object(r.default)();return e.changedTouches&&(e=e.changedTouches[0]),Object(i.default)(t,e)}},"./node_modules/d3-selection/src/namespace.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/namespaces.js");e.default=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.default.hasOwnProperty(e)?{space:r.default[e],local:t}:t}},"./node_modules/d3-selection/src/namespaces.js":function(t,e,n){"use strict";n.r(e),n.d(e,"xhtml",function(){return r});var r="http://www.w3.org/1999/xhtml";e.default={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},"./node_modules/d3-selection/src/point.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}},"./node_modules/d3-selection/src/select.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/selection/index.js");e.default=function(t){return"string"==typeof t?new r.Selection([[document.querySelector(t)]],[document.documentElement]):new r.Selection([[t]],r.root)}},"./node_modules/d3-selection/src/selectAll.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/selection/index.js");e.default=function(t){return"string"==typeof t?new r.Selection([document.querySelectorAll(t)],[document.documentElement]):new r.Selection([null==t?[]:t],r.root)}},"./node_modules/d3-selection/src/selection/append.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/creator.js");e.default=function(t){var e="function"==typeof t?t:Object(r.default)(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}},"./node_modules/d3-selection/src/selection/attr.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/namespace.js");e.default=function(t,e){var n=Object(r.default)(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))}},"./node_modules/d3-selection/src/selection/call.js":function(t,e,n){"use strict";n.r(e),e.default=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}},"./node_modules/d3-selection/src/selection/classed.js":function(t,e,n){"use strict";function r(t){return t.trim().split(/^|\s+/)}function i(t){return t.classList||new o(t)}function o(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function a(t,e){for(var n=i(t),r=-1,o=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},e.default=function(t,e){var n=r(t+"");if(arguments.length<2){for(var o=i(this.node()),u=-1,c=n.length;++u=O&&(O=j+1);!(w=b[O])&&++O<_;);x._next=w||null}}return(l=new r.Selection(l,i))._enter=d,l._exit=p,l}},"./node_modules/d3-selection/src/selection/datum.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){return arguments.length?this.property("__data__",t):this.node().__data__}},"./node_modules/d3-selection/src/selection/dispatch.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/window.js");function i(t,e,n){var i=Object(r.default)(t),o=i.CustomEvent;"function"==typeof o?o=new o(e,n):(o=i.document.createEvent("Event"),n?(o.initEvent(e,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(e,!1,!1)),t.dispatchEvent(o)}e.default=function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return i(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return i(this,t,e)}})(t,e))}},"./node_modules/d3-selection/src/selection/each.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){for(var e=this._groups,n=0,r=e.length;n=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=o.length;if(!(arguments.length<2)){for(c=e?u:s,null==n&&(n=!1),r=0;r=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this}},"./node_modules/d3-selection/src/selection/property.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]}},"./node_modules/d3-selection/src/selection/raise.js":function(t,e,n){"use strict";function r(){this.nextSibling&&this.parentNode.appendChild(this)}n.r(e),e.default=function(){return this.each(r)}},"./node_modules/d3-selection/src/selection/remove.js":function(t,e,n){"use strict";function r(){var t=this.parentNode;t&&t.removeChild(this)}n.r(e),e.default=function(){return this.each(r)}},"./node_modules/d3-selection/src/selection/select.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/selection/index.js"),i=n("./node_modules/d3-selection/src/selector.js");e.default=function(t){"function"!=typeof t&&(t=Object(i.default)(t));for(var e=this._groups,n=e.length,o=new Array(n),a=0;ae?1:t>=e?0:NaN}e.default=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=i);for(var n=this._groups,o=n.length,a=new Array(o),s=0;s1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):i(this.node(),t)}},"./node_modules/d3-selection/src/selection/text.js":function(t,e,n){"use strict";function r(){this.textContent=""}n.r(e),e.default=function(t){return arguments.length?this.each(null==t?r:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent}},"./node_modules/d3-selection/src/selector.js":function(t,e,n){"use strict";function r(){}n.r(e),e.default=function(t){return null==t?r:function(){return this.querySelector(t)}}},"./node_modules/d3-selection/src/selectorAll.js":function(t,e,n){"use strict";function r(){return[]}n.r(e),e.default=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},"./node_modules/d3-selection/src/sourceEvent.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/selection/on.js");e.default=function(){for(var t,e=r.event;t=e.sourceEvent;)e=t;return e}},"./node_modules/d3-selection/src/touch.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-selection/src/sourceEvent.js"),i=n("./node_modules/d3-selection/src/point.js");e.default=function(t,e,n){arguments.length<3&&(n=e,e=Object(r.default)().changedTouches);for(var o,a=0,s=e?e.length:0;a=0&&e._call.call(null,t),e=e._next;--o}function v(){l=(c=p.now())+d,o=a=0;try{_()}finally{o=0,function(){var t,e,n=r,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,x(o)}(),l=0}}function b(){var t=p.now(),e=t-c;e>u&&(d-=e,c=t)}function x(t){o||(a&&(a=clearTimeout(a)),t-l>24?(t<1/0&&(a=setTimeout(v,t-p.now()-d)),s&&(s=clearInterval(s))):(s||(c=p.now(),s=setInterval(b,u)),o=1,f(v)))}g.prototype=y.prototype={constructor:g,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?h():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}}},"./node_modules/d3-transition/src/active.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-transition/src/transition/index.js"),i=n("./node_modules/d3-transition/src/transition/schedule.js"),o=[null];e.default=function(t,e){var n,a,s=t.__transition;if(s){e=null==e?null:e+"";for(a in s)if((n=s[a]).state>i.SCHEDULED&&n.name===e)return new r.Transition([[t]],o,e,+a)}return null}},"./node_modules/d3-transition/src/index.js":function(t,e,n){"use strict";n.r(e);n("./node_modules/d3-transition/src/selection/index.js");var r=n("./node_modules/d3-transition/src/transition/index.js");n.d(e,"transition",function(){return r.default});var i=n("./node_modules/d3-transition/src/active.js");n.d(e,"active",function(){return i.default});var o=n("./node_modules/d3-transition/src/interrupt.js");n.d(e,"interrupt",function(){return o.default})},"./node_modules/d3-transition/src/interrupt.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-transition/src/transition/schedule.js");e.default=function(t,e){var n,i,o,a=t.__transition,s=!0;if(a){e=null==e?null:e+"";for(o in a)(n=a[o]).name===e?(i=n.state>r.STARTING&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t})?r.init:r.set,function(){var t=u(this,n),e=t.on;e!==a&&(s=(a=e).copy()).on(i,o),t.on=s}))}},"./node_modules/d3-transition/src/transition/remove.js":function(t,e,n){"use strict";n.r(e),e.default=function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t}},"./node_modules/d3-transition/src/transition/schedule.js":function(t,e,n){"use strict";n.r(e),n.d(e,"CREATED",function(){return s}),n.d(e,"SCHEDULED",function(){return u}),n.d(e,"STARTING",function(){return c}),n.d(e,"STARTED",function(){return l}),n.d(e,"RUNNING",function(){return d}),n.d(e,"ENDING",function(){return p}),n.d(e,"ENDED",function(){return f}),n.d(e,"init",function(){return h}),n.d(e,"set",function(){return m}),n.d(e,"get",function(){return g});var r=n("./node_modules/d3-dispatch/index.js"),i=n("./node_modules/d3-timer/index.js"),o=Object(r.dispatch)("start","end","cancel","interrupt"),a=[],s=0,u=1,c=2,l=3,d=4,p=5,f=6;function h(t,e){var n=g(t,e);if(n.state>s)throw new Error("too late; already scheduled");return n}function m(t,e){var n=g(t,e);if(n.state>l)throw new Error("too late; already running");return n}function g(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}e.default=function(t,e,n,r,h,m){var g=t.__transition;if(g){if(n in g)return}else t.__transition={};!function(t,e,n){var r,o=t.__transition;function a(p){var m,g,y,_;if(n.state!==u)return h();for(m in o)if((_=o[m]).name===n.name){if(_.state===l)return Object(i.timeout)(a);_.state===d?(_.state=f,_.timer.stop(),_.on.call("interrupt",t,t.__data__,_.index,_.group),delete o[m]):+mthis._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new d(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new u.ObjectUnsubscribedError;if(this.isStopped||this.hasError?e=a.Subscription.EMPTY:(this.observers.push(t),e=new c.SubjectSubscription(this,t)),i&&t.add(t=new s.ObserveOnSubscriber(t,i)),n)for(var l=0;le&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.Subject),d=function(){return function(t,e){this.time=t,this.value=e}}()},"./node_modules/rxjs/_esm5/internal/Scheduler.js":function(t,e,n){"use strict";n.r(e),n.d(e,"Scheduler",function(){return r});var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},"./node_modules/rxjs/_esm5/internal/Subject.js":function(t,e,n){"use strict";n.r(e),n.d(e,"SubjectSubscriber",function(){return l}),n.d(e,"Subject",function(){return d}),n.d(e,"AnonymousSubject",function(){return p});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Observable.js"),o=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),a=n("./node_modules/rxjs/_esm5/internal/Subscription.js"),s=n("./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js"),u=n("./node_modules/rxjs/_esm5/internal/SubjectSubscription.js"),c=n("./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js"),l=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.__extends(e,t),e}(o.Subscriber),d=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.__extends(e,t),e.prototype[c.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i1?r.next(Array.prototype.slice.call(arguments)):r.next(t)},r,n)})}},"./node_modules/rxjs/_esm5/internal/observable/fromEventPattern.js":function(t,e,n){"use strict";n.r(e),n.d(e,"fromEventPattern",function(){return s});var r=n("./node_modules/rxjs/_esm5/internal/Observable.js"),i=n("./node_modules/rxjs/_esm5/internal/util/isArray.js"),o=n("./node_modules/rxjs/_esm5/internal/util/isFunction.js"),a=n("./node_modules/rxjs/_esm5/internal/operators/map.js");function s(t,e,n){return n?s(t,e).pipe(Object(a.map)(function(t){return Object(i.isArray)(t)?n.apply(void 0,t):n(t)})):new r.Observable(function(n){var r,i=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.Observable?t[0]:Object(o.mergeAll)(n)(Object(a.fromArray)(t,s))}},"./node_modules/rxjs/_esm5/internal/observable/never.js":function(t,e,n){"use strict";n.r(e),n.d(e,"NEVER",function(){return o}),n.d(e,"never",function(){return a});var r=n("./node_modules/rxjs/_esm5/internal/Observable.js"),i=n("./node_modules/rxjs/_esm5/internal/util/noop.js"),o=new r.Observable(i.noop);function a(){return o}},"./node_modules/rxjs/_esm5/internal/observable/of.js":function(t,e,n){"use strict";n.r(e),n.d(e,"of",function(){return s});var r=n("./node_modules/rxjs/_esm5/internal/util/isScheduler.js"),i=n("./node_modules/rxjs/_esm5/internal/observable/fromArray.js"),o=n("./node_modules/rxjs/_esm5/internal/observable/empty.js"),a=n("./node_modules/rxjs/_esm5/internal/observable/scalar.js");function s(){for(var t=[],e=0;e=e){r.complete();break}if(r.next(a++),r.closed)break}})}function o(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}},"./node_modules/rxjs/_esm5/internal/observable/scalar.js":function(t,e,n){"use strict";n.r(e),n.d(e,"scalar",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/Observable.js");function i(t){var e=new r.Observable(function(e){e.next(t),e.complete()});return e._isScalar=!0,e.value=t,e}},"./node_modules/rxjs/_esm5/internal/observable/throwError.js":function(t,e,n){"use strict";n.r(e),n.d(e,"throwError",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/Observable.js");function i(t,e){return e?new r.Observable(function(n){return e.schedule(o,0,{error:t,subscriber:n})}):new r.Observable(function(e){return e.error(t)})}function o(t){var e=t.error;t.subscriber.error(e)}},"./node_modules/rxjs/_esm5/internal/observable/timer.js":function(t,e,n){"use strict";n.r(e),n.d(e,"timer",function(){return s});var r=n("./node_modules/rxjs/_esm5/internal/Observable.js"),i=n("./node_modules/rxjs/_esm5/internal/scheduler/async.js"),o=n("./node_modules/rxjs/_esm5/internal/util/isNumeric.js"),a=n("./node_modules/rxjs/_esm5/internal/util/isScheduler.js");function s(t,e,n){void 0===t&&(t=0);var s=-1;return Object(o.isNumeric)(e)?s=Number(e)<1?1:Number(e):Object(a.isScheduler)(e)&&(n=e),Object(a.isScheduler)(n)||(n=i.async),new r.Observable(function(e){var r=Object(o.isNumeric)(t)?t:+t-n.now();return n.schedule(u,r,{index:0,period:s,subscriber:e})})}function u(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},"./node_modules/rxjs/_esm5/internal/observable/using.js":function(t,e,n){"use strict";n.r(e),n.d(e,"using",function(){return a});var r=n("./node_modules/rxjs/_esm5/internal/Observable.js"),i=n("./node_modules/rxjs/_esm5/internal/observable/from.js"),o=n("./node_modules/rxjs/_esm5/internal/observable/empty.js");function a(t,e){return new r.Observable(function(n){var r,a;try{r=t()}catch(t){return void n.error(t)}try{a=e(r)}catch(t){return void n.error(t)}var s=(a?Object(i.from)(a):o.EMPTY).subscribe(n);return function(){s.unsubscribe(),r&&r.unsubscribe()}})}},"./node_modules/rxjs/_esm5/internal/observable/zip.js":function(t,e,n){"use strict";n.r(e),n.d(e,"zip",function(){return l}),n.d(e,"ZipOperator",function(){return d}),n.d(e,"ZipSubscriber",function(){return p});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/observable/fromArray.js"),o=n("./node_modules/rxjs/_esm5/internal/util/isArray.js"),a=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),s=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),u=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"),c=n("./node_modules/rxjs/_esm5/internal/symbol/iterator.js");function l(){for(var t=[],e=0;ethis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),m=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.__extends(e,t),e.prototype[c.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return Object(u.subscribeToResult)(this,this.observable,this,e)},e}(s.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/audit.js":function(t,e,n){"use strict";n.r(e),n.d(e,"audit",function(){return u});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/util/tryCatch.js"),o=n("./node_modules/rxjs/_esm5/internal/util/errorObject.js"),a=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),s=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function u(t){return function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.durationSelector))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.__extends(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=Object(i.tryCatch)(this.durationSelector)(t);if(e===o.errorObject)this.destination.error(o.errorObject.e);else{var n=Object(s.subscribeToResult)(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(a.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/auditTime.js":function(t,e,n){"use strict";n.r(e),n.d(e,"auditTime",function(){return a});var r=n("./node_modules/rxjs/_esm5/internal/scheduler/async.js"),i=n("./node_modules/rxjs/_esm5/internal/operators/audit.js"),o=n("./node_modules/rxjs/_esm5/internal/observable/timer.js");function a(t,e){return void 0===e&&(e=r.async),Object(i.audit)(function(){return Object(o.timer)(t,e)})}},"./node_modules/rxjs/_esm5/internal/operators/buffer.js":function(t,e,n){"use strict";n.r(e),n.d(e,"buffer",function(){return a});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.closingNotifier))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(o.subscribeToResult)(r,n)),r}return r.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(i.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/bufferCount.js":function(t,e,n){"use strict";n.r(e),n.d(e,"bufferCount",function(){return o});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(t,e){return void 0===e&&(e=null),function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?u:s}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(i.Subscriber),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.__extends(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(t),a.length===e&&(r.splice(o,1),this.destination.next(a))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/bufferTime.js":function(t,e,n){"use strict";n.r(e),n.d(e,"bufferTime",function(){return s});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/scheduler/async.js"),o=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),a=n("./node_modules/rxjs/_esm5/internal/util/isScheduler.js");function s(t){var e=arguments.length,n=i.async;Object(a.isScheduler)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var o=Number.POSITIVE_INFINITY;return e>=3&&(o=arguments[2]),function(e){return e.lift(new u(t,r,o,n))}}var u=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),c=function(){return function(){this.buffer=[]}}(),l=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=r,a.maxBufferSize=i,a.scheduler=o,a.contexts=[];var s=a.openContext();if(a.timespanOnly=null==r||r<0,a.timespanOnly){var u={subscriber:a,context:s,bufferTimeSpan:n};a.add(s.closeAction=o.schedule(d,n,u))}else{var c={subscriber:a,context:s},l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:a,scheduler:o};a.add(s.closeAction=o.schedule(f,n,c)),a.add(o.schedule(p,r,l))}return a}return r.__extends(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(d,n,r))}},e.prototype.openContext=function(){var t=new c;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(o.Subscriber);function d(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function p(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(f,n,{subscriber:r,context:o})),this.schedule(t,e))}function f(t){var e=t.subscriber,n=t.context;e.closeContext(n)}},"./node_modules/rxjs/_esm5/internal/operators/bufferToggle.js":function(t,e,n){"use strict";n.r(e),n.d(e,"bufferToggle",function(){return s});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscription.js"),o=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"),a=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js");function s(t,e){return function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.openings,this.closingSelector))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(Object(o.subscribeToResult)(i,n)),i}return r.__extends(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new i.Subscription,r={buffer:[],subscription:n};e.push(r);var a=Object(o.subscribeToResult)(this,t,r);!a||a.closed?this.closeBuffer(r):(a.context=r,this.add(a),n.add(a))},e}(a.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/bufferWhen.js":function(t,e,n){"use strict";n.r(e),n.d(e,"bufferWhen",function(){return c});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscription.js"),o=n("./node_modules/rxjs/_esm5/internal/util/tryCatch.js"),a=n("./node_modules/rxjs/_esm5/internal/util/errorObject.js"),s=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),u=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function c(t){return function(e){return e.lift(new l(t))}}var l=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.closingSelector))},t}(),d=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.__extends(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var n=Object(o.tryCatch)(this.closingSelector)();n===a.errorObject?this.error(a.errorObject.e):(t=new i.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(u.subscribeToResult)(this,n)),this.subscribing=!1)},e}(s.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/catchError.js":function(t,e,n){"use strict";n.r(e),n.d(e,"catchError",function(){return s});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/InnerSubscriber.js"),a=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function s(t){return function(e){var n=new u(t),r=e.lift(n);return n.caught=r}}var u=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.selector,this.caught))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new o.InnerSubscriber(this,void 0,void 0);this.add(r),Object(a.subscribeToResult)(this,n,void 0,void 0,r)}},e}(i.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/combineAll.js":function(t,e,n){"use strict";n.r(e),n.d(e,"combineAll",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/observable/combineLatest.js");function i(t){return function(e){return e.lift(new r.CombineLatestOperator(t))}}},"./node_modules/rxjs/_esm5/internal/operators/combineLatest.js":function(t,e,n){"use strict";n.r(e),n.d(e,"combineLatest",function(){return a});var r=n("./node_modules/rxjs/_esm5/internal/util/isArray.js"),i=n("./node_modules/rxjs/_esm5/internal/observable/combineLatest.js"),o=n("./node_modules/rxjs/_esm5/internal/observable/from.js");function a(){for(var t=[],e=0;e0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new d(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(s.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(s.Notification.createComplete()),this.unsubscribe()},e}(a.Subscriber),d=function(){return function(t,e){this.time=t,this.notification=e}}()},"./node_modules/rxjs/_esm5/internal/operators/delayWhen.js":function(t,e,n){"use strict";n.r(e),n.d(e,"delayWhen",function(){return u});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/Observable.js"),a=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),s=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function u(t,e){return e?function(n){return new d(n,e).lift(new c(t))}:function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delayDurationSelector))},t}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=Object(s.subscribeToResult)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(a.OuterSubscriber),d=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.__extends(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new p(t,this.source))},e}(o.Observable),p=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.__extends(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/dematerialize.js":function(t,e,n){"use strict";n.r(e),n.d(e,"dematerialize",function(){return o});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(){return function(t){return t.lift(new a)}}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/distinct.js":function(t,e,n){"use strict";n.r(e),n.d(e,"distinct",function(){return a}),n.d(e,"DistinctSubscriber",function(){return u});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function a(t,e){return function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.keySelector,this.flushes))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=n,i.values=new Set,r&&i.add(Object(o.subscribeToResult)(i,r)),i}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/distinctUntilChanged.js":function(t,e,n){"use strict";n.r(e),n.d(e,"distinctUntilChanged",function(){return s});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/util/tryCatch.js"),a=n("./node_modules/rxjs/_esm5/internal/util/errorObject.js");function s(t,e){return function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compare,this.keySelector))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.__extends(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=Object(o.tryCatch)(this.keySelector)(t))===a.errorObject)return this.destination.error(a.errorObject.e);var n=!1;if(this.hasKey){if((n=Object(o.tryCatch)(this.compare)(this.key,e))===a.errorObject)return this.destination.error(a.errorObject.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/distinctUntilKeyChanged.js":function(t,e,n){"use strict";n.r(e),n.d(e,"distinctUntilKeyChanged",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/operators/distinctUntilChanged.js");function i(t,e){return Object(r.distinctUntilChanged)(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})}},"./node_modules/rxjs/_esm5/internal/operators/elementAt.js":function(t,e,n){"use strict";n.r(e),n.d(e,"elementAt",function(){return u});var r=n("./node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js"),i=n("./node_modules/rxjs/_esm5/internal/operators/filter.js"),o=n("./node_modules/rxjs/_esm5/internal/operators/throwIfEmpty.js"),a=n("./node_modules/rxjs/_esm5/internal/operators/defaultIfEmpty.js"),s=n("./node_modules/rxjs/_esm5/internal/operators/take.js");function u(t,e){if(t<0)throw new r.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(u){return u.pipe(Object(i.filter)(function(e,n){return n===t}),Object(s.take)(1),n?Object(a.defaultIfEmpty)(e):Object(o.throwIfEmpty)(function(){return new r.ArgumentOutOfRangeError}))}}},"./node_modules/rxjs/_esm5/internal/operators/endWith.js":function(t,e,n){"use strict";n.r(e),n.d(e,"endWith",function(){return u});var r=n("./node_modules/rxjs/_esm5/internal/observable/fromArray.js"),i=n("./node_modules/rxjs/_esm5/internal/observable/scalar.js"),o=n("./node_modules/rxjs/_esm5/internal/observable/empty.js"),a=n("./node_modules/rxjs/_esm5/internal/observable/concat.js"),s=n("./node_modules/rxjs/_esm5/internal/util/isScheduler.js");function u(){for(var t=[],e=0;e0?Object(a.concat)(e,Object(r.fromArray)(t,n)):Object(a.concat)(e,Object(o.empty)(n)):Object(a.concat)(e,Object(i.scalar)(t[0]))}}},"./node_modules/rxjs/_esm5/internal/operators/every.js":function(t,e,n){"use strict";n.r(e),n.d(e,"every",function(){return o});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(t,e){return function(n){return n.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg,this.source))},t}(),s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.__extends(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/exhaust.js":function(t,e,n){"use strict";n.r(e),n.d(e,"exhaust",function(){return a});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function a(){return function(t){return t.lift(new s)}}var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(o.subscribeToResult)(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/exhaustMap.js":function(t,e,n){"use strict";n.r(e),n.d(e,"exhaustMap",function(){return c});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/InnerSubscriber.js"),a=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"),s=n("./node_modules/rxjs/_esm5/internal/operators/map.js"),u=n("./node_modules/rxjs/_esm5/internal/observable/from.js");function c(t,e){return e?function(n){return n.pipe(c(function(n,r){return Object(u.from)(t(n,r)).pipe(Object(s.map)(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new l(t))}}var l=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.project))},t}(),d=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.hasSubscription=!0,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=new o.InnerSubscriber(this,void 0,void 0);this.destination.add(r),Object(a.subscribeToResult)(this,t,e,n,r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/expand.js":function(t,e,n){"use strict";n.r(e),n.d(e,"expand",function(){return u}),n.d(e,"ExpandOperator",function(){return c}),n.d(e,"ExpandSubscriber",function(){return l});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/util/tryCatch.js"),o=n("./node_modules/rxjs/_esm5/internal/util/errorObject.js"),a=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),s=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function u(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new c(t,e,n))}}var c=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent,this.scheduler))},t}(),l=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(a.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/filter.js":function(t,e,n){"use strict";n.r(e),n.d(e,"filter",function(){return o});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(t,e){return function(n){return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/finalize.js":function(t,e,n){"use strict";n.r(e),n.d(e,"finalize",function(){return a});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/Subscription.js");function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.callback))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new o.Subscription(n)),r}return r.__extends(e,t),e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/find.js":function(t,e,n){"use strict";n.r(e),n.d(e,"find",function(){return o}),n.d(e,"FindValueOperator",function(){return a}),n.d(e,"FindValueSubscriber",function(){return s});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new a(t,n,!1,e))}}var a=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),s=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.predicate=n,a.source=r,a.yieldIndex=i,a.thisArg=o,a.index=0,a}return r.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/findIndex.js":function(t,e,n){"use strict";n.r(e),n.d(e,"findIndex",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/operators/find.js");function i(t,e){return function(n){return n.lift(new r.FindValueOperator(t,n,!0,e))}}},"./node_modules/rxjs/_esm5/internal/operators/first.js":function(t,e,n){"use strict";n.r(e),n.d(e,"first",function(){return c});var r=n("./node_modules/rxjs/_esm5/internal/util/EmptyError.js"),i=n("./node_modules/rxjs/_esm5/internal/operators/filter.js"),o=n("./node_modules/rxjs/_esm5/internal/operators/take.js"),a=n("./node_modules/rxjs/_esm5/internal/operators/defaultIfEmpty.js"),s=n("./node_modules/rxjs/_esm5/internal/operators/throwIfEmpty.js"),u=n("./node_modules/rxjs/_esm5/internal/util/identity.js");function c(t,e){var n=arguments.length>=2;return function(c){return c.pipe(t?Object(i.filter)(function(e,n){return t(e,n,c)}):u.identity,Object(o.take)(1),n?Object(a.defaultIfEmpty)(e):Object(s.throwIfEmpty)(function(){return new r.EmptyError}))}}},"./node_modules/rxjs/_esm5/internal/operators/groupBy.js":function(t,e,n){"use strict";n.r(e),n.d(e,"groupBy",function(){return u}),n.d(e,"GroupedObservable",function(){return p});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/Subscription.js"),a=n("./node_modules/rxjs/_esm5/internal/Observable.js"),s=n("./node_modules/rxjs/_esm5/internal/Subject.js");function u(t,e,n,r){return function(i){return i.lift(new c(t,e,n,r))}}var c=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),l=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.keySelector=n,a.elementSelector=r,a.durationSelector=i,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new s.Subject,n.set(e,i);var o=new p(e,i,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new p(e,i))}catch(t){return void this.error(t)}this.add(a.subscribe(new d(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.Subscriber),d=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.__extends(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.Subscriber),p=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.__extends(e,t),e.prototype._subscribe=function(t){var e=new o.Subscription,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new f(n)),e.add(r.subscribe(t)),e},e}(a.Observable),f=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.__extends(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.Subscription)},"./node_modules/rxjs/_esm5/internal/operators/ignoreElements.js":function(t,e,n){"use strict";n.r(e),n.d(e,"ignoreElements",function(){return o});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(){return function(t){return t.lift(new a)}}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype._next=function(t){},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/isEmpty.js":function(t,e,n){"use strict";n.r(e),n.d(e,"isEmpty",function(){return o});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(){return function(t){return t.lift(new a)}}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new s(t))},t}(),s=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/last.js":function(t,e,n){"use strict";n.r(e),n.d(e,"last",function(){return c});var r=n("./node_modules/rxjs/_esm5/internal/util/EmptyError.js"),i=n("./node_modules/rxjs/_esm5/internal/operators/filter.js"),o=n("./node_modules/rxjs/_esm5/internal/operators/takeLast.js"),a=n("./node_modules/rxjs/_esm5/internal/operators/throwIfEmpty.js"),s=n("./node_modules/rxjs/_esm5/internal/operators/defaultIfEmpty.js"),u=n("./node_modules/rxjs/_esm5/internal/util/identity.js");function c(t,e){var n=arguments.length>=2;return function(c){return c.pipe(t?Object(i.filter)(function(e,n){return t(e,n,c)}):u.identity,Object(o.takeLast)(1),n?Object(s.defaultIfEmpty)(e):Object(a.throwIfEmpty)(function(){return new r.EmptyError}))}}},"./node_modules/rxjs/_esm5/internal/operators/map.js":function(t,e,n){"use strict";n.r(e),n.d(e,"map",function(){return o}),n.d(e,"MapOperator",function(){return a});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(t,e))}}var a=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.__extends(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/mapTo.js":function(t,e,n){"use strict";n.r(e),n.d(e,"mapTo",function(){return o});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.value))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/materialize.js":function(t,e,n){"use strict";n.r(e),n.d(e,"materialize",function(){return a});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/Notification.js");function a(){return function(t){return t.lift(new s)}}var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){return t.call(this,e)||this}return r.__extends(e,t),e.prototype._next=function(t){this.destination.next(o.Notification.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(o.Notification.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(o.Notification.createComplete()),t.complete()},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/max.js":function(t,e,n){"use strict";n.r(e),n.d(e,"max",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/operators/reduce.js");function i(t){var e="function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e};return Object(r.reduce)(e)}},"./node_modules/rxjs/_esm5/internal/operators/merge.js":function(t,e,n){"use strict";n.r(e),n.d(e,"merge",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/observable/merge.js");function i(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/mergeMapTo.js":function(t,e,n){"use strict";n.r(e),n.d(e,"mergeMapTo",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/operators/mergeMap.js");function i(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?Object(r.mergeMap)(function(){return t},e,n):("number"==typeof e&&(n=e),Object(r.mergeMap)(function(){return t},n))}},"./node_modules/rxjs/_esm5/internal/operators/mergeScan.js":function(t,e,n){"use strict";n.r(e),n.d(e,"mergeScan",function(){return c}),n.d(e,"MergeScanOperator",function(){return l}),n.d(e,"MergeScanSubscriber",function(){return d});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/util/tryCatch.js"),o=n("./node_modules/rxjs/_esm5/internal/util/errorObject.js"),a=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"),s=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),u=n("./node_modules/rxjs/_esm5/internal/InnerSubscriber.js");function c(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new l(t,e,n))}}var l=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.accumulator,this.seed,this.concurrent))},t}(),d=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.__extends(e,t),e.prototype._next=function(t){if(this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(s.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/min.js":function(t,e,n){"use strict";n.r(e),n.d(e,"min",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/operators/reduce.js");function i(t){var e="function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t=2?function(n){return Object(a.pipe)(Object(r.scan)(t,e),Object(i.takeLast)(1),Object(o.defaultIfEmpty)(e))(n)}:function(e){return Object(a.pipe)(Object(r.scan)(function(e,n,r){return t(e,n,r+1)}),Object(i.takeLast)(1))(e)}}},"./node_modules/rxjs/_esm5/internal/operators/refCount.js":function(t,e,n){"use strict";n.r(e),n.d(e,"refCount",function(){return o});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(){return function(t){return t.lift(new a(t))}}var a=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new s(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.__extends(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/repeat.js":function(t,e,n){"use strict";n.r(e),n.d(e,"repeat",function(){return a});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/observable/empty.js");function a(t){return void 0===t&&(t=-1),function(e){return 0===t?Object(o.empty)():t<0?e.lift(new s(-1,e)):e.lift(new s(t-1,e))}}var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.count,this.source))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.__extends(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/repeatWhen.js":function(t,e,n){"use strict";n.r(e),n.d(e,"repeatWhen",function(){return c});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subject.js"),o=n("./node_modules/rxjs/_esm5/internal/util/tryCatch.js"),a=n("./node_modules/rxjs/_esm5/internal/util/errorObject.js"),s=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),u=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function c(t){return function(e){return e.lift(new l(t))}}var l=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.notifier,e))},t}(),d=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.__extends(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){this.notifications=new i.Subject;var e=Object(o.tryCatch)(this.notifier)(this.notifications);if(e===a.errorObject)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=Object(u.subscribeToResult)(this,e)},e}(s.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/retry.js":function(t,e,n){"use strict";n.r(e),n.d(e,"retry",function(){return o});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(t){return void 0===t&&(t=-1),function(e){return e.lift(new a(t,e))}}var a=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.count,this.source))},t}(),s=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/retryWhen.js":function(t,e,n){"use strict";n.r(e),n.d(e,"retryWhen",function(){return c});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subject.js"),o=n("./node_modules/rxjs/_esm5/internal/util/tryCatch.js"),a=n("./node_modules/rxjs/_esm5/internal/util/errorObject.js"),s=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),u=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function c(t){return function(e){return e.lift(new l(t,e))}}var l=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.notifier,this.source))},t}(),d=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.__extends(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,s=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new i.Subject,(r=Object(o.tryCatch)(this.notifier)(n))===a.errorObject)return t.prototype.error.call(this,a.errorObject.e);s=Object(u.subscribeToResult)(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=s,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=o,this.source.subscribe(this)},e}(s.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/sample.js":function(t,e,n){"use strict";n.r(e),n.d(e,"sample",function(){return a});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new u(t),r=e.subscribe(n);return r.add(Object(o.subscribeToResult)(n,this.notifier)),r},t}(),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.__extends(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/sampleTime.js":function(t,e,n){"use strict";n.r(e),n.d(e,"sampleTime",function(){return a});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/scheduler/async.js");function a(t,e){return void 0===e&&(e=o.async),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.period,this.scheduler))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(c,n,{subscriber:i,period:n})),i}return r.__extends(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(i.Subscriber);function c(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}},"./node_modules/rxjs/_esm5/internal/operators/scan.js":function(t,e,n){"use strict";n.r(e),n.d(e,"scan",function(){return o});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.__extends(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/sequenceEqual.js":function(t,e,n){"use strict";n.r(e),n.d(e,"sequenceEqual",function(){return s}),n.d(e,"SequenceEqualOperator",function(){return u}),n.d(e,"SequenceEqualSubscriber",function(){return c});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/util/tryCatch.js"),a=n("./node_modules/rxjs/_esm5/internal/util/errorObject.js");function s(t,e){return function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compareTo,this.comparor))},t}(),c=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparor=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new l(e,i))),i}return r.__extends(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparor;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),s=!1;n?(s=Object(o.tryCatch)(n)(r,i))===a.errorObject&&this.destination.error(a.errorObject.e):s=r===i,s||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(i.Subscriber),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.__extends(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/share.js":function(t,e,n){"use strict";n.r(e),n.d(e,"share",function(){return s});var r=n("./node_modules/rxjs/_esm5/internal/operators/multicast.js"),i=n("./node_modules/rxjs/_esm5/internal/operators/refCount.js"),o=n("./node_modules/rxjs/_esm5/internal/Subject.js");function a(){return new o.Subject}function s(){return function(t){return Object(i.refCount)()(Object(r.multicast)(a)(t))}}},"./node_modules/rxjs/_esm5/internal/operators/shareReplay.js":function(t,e,n){"use strict";n.r(e),n.d(e,"shareReplay",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/ReplaySubject.js");function i(t,e,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===e&&(e=Number.POSITIVE_INFINITY),function(i){return i.lift((o=t,a=e,s=n,l=0,d=!1,p=!1,function(t){l++,u&&!d||(d=!1,u=new r.ReplaySubject(o,a,s),c=t.subscribe({next:function(t){u.next(t)},error:function(t){d=!0,u.error(t)},complete:function(){p=!0,u.complete()}}));var e=u.subscribe(this);return function(){l--,e.unsubscribe(),c&&0===l&&p&&c.unsubscribe()}}));var o,a,s,u,c,l,d,p}}},"./node_modules/rxjs/_esm5/internal/operators/single.js":function(t,e,n){"use strict";n.r(e),n.d(e,"single",function(){return a});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/util/EmptyError.js");function a(t){return function(e){return e.lift(new s(t,e))}}var s=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.source))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.__extends(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new o.EmptyError)},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/skip.js":function(t,e,n){"use strict";n.r(e),n.d(e,"skip",function(){return o});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/skipLast.js":function(t,e,n){"use strict";n.r(e),n.d(e,"skipLast",function(){return a});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js");function a(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new i.Subscriber(t)):e.subscribe(new u(t,this._skipCount))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.__extends(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n0?Object(a.concat)(Object(r.fromArray)(t,n),e):Object(a.concat)(Object(o.empty)(n),e):Object(a.concat)(Object(i.scalar)(t[0]),e)}}},"./node_modules/rxjs/_esm5/internal/operators/subscribeOn.js":function(t,e,n){"use strict";n.r(e),n.d(e,"subscribeOn",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/observable/SubscribeOnObservable.js");function i(t,e){return void 0===e&&(e=0),function(n){return n.lift(new o(t,e))}}var o=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new r.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},t}()},"./node_modules/rxjs/_esm5/internal/operators/switchAll.js":function(t,e,n){"use strict";n.r(e),n.d(e,"switchAll",function(){return o});var r=n("./node_modules/rxjs/_esm5/internal/operators/switchMap.js"),i=n("./node_modules/rxjs/_esm5/internal/util/identity.js");function o(){return Object(r.switchMap)(i.identity)}},"./node_modules/rxjs/_esm5/internal/operators/switchMap.js":function(t,e,n){"use strict";n.r(e),n.d(e,"switchMap",function(){return c});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/InnerSubscriber.js"),a=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"),s=n("./node_modules/rxjs/_esm5/internal/operators/map.js"),u=n("./node_modules/rxjs/_esm5/internal/observable/from.js");function c(t,e){return"function"==typeof e?function(n){return n.pipe(c(function(n,r){return Object(u.from)(t(n,r)).pipe(Object(s.map)(function(t,i){return e(n,t,r,i)}))}))}:function(e){return e.lift(new l(t))}}var l=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.project))},t}(),d=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var i=new o.InnerSubscriber(this,void 0,void 0);this.destination.add(i),this.innerSubscription=Object(a.subscribeToResult)(this,t,e,n,i)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e}(i.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/switchMapTo.js":function(t,e,n){"use strict";n.r(e),n.d(e,"switchMapTo",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/operators/switchMap.js");function i(t,e){return e?Object(r.switchMap)(function(){return t},e):Object(r.switchMap)(function(){return t})}},"./node_modules/rxjs/_esm5/internal/operators/take.js":function(t,e,n){"use strict";n.r(e),n.d(e,"take",function(){return s});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js"),a=n("./node_modules/rxjs/_esm5/internal/observable/empty.js");function s(t){return function(e){return 0===t?Object(a.empty)():e.lift(new u(t))}}var u=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/takeLast.js":function(t,e,n){"use strict";n.r(e),n.d(e,"takeLast",function(){return s});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),o=n("./node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js"),a=n("./node_modules/rxjs/_esm5/internal/observable/empty.js");function s(t){return function(e){return 0===t?Object(a.empty)():e.lift(new u(t))}}var u=function(){function t(t){if(this.total=t,this.total<0)throw new o.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.__extends(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,a=i.length,s=0;s=0&&u%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var c=new o.Subject;i.push(c),n.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(i.Subscriber)},"./node_modules/rxjs/_esm5/internal/operators/windowTime.js":function(t,e,n){"use strict";n.r(e),n.d(e,"windowTime",function(){return c});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subject.js"),o=n("./node_modules/rxjs/_esm5/internal/scheduler/async.js"),a=n("./node_modules/rxjs/_esm5/internal/Subscriber.js"),s=n("./node_modules/rxjs/_esm5/internal/util/isNumeric.js"),u=n("./node_modules/rxjs/_esm5/internal/util/isScheduler.js");function c(t){var e=o.async,n=null,r=Number.POSITIVE_INFINITY;return Object(u.isScheduler)(arguments[3])&&(e=arguments[3]),Object(u.isScheduler)(arguments[2])?e=arguments[2]:Object(s.isNumeric)(arguments[2])&&(r=arguments[2]),Object(u.isScheduler)(arguments[1])?e=arguments[1]:Object(s.isNumeric)(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new l(t,n,r,e))}}var l=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.__extends(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(i.Subject),p=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;a.destination=e,a.windowTimeSpan=n,a.windowCreationInterval=r,a.maxWindowSize=i,a.scheduler=o,a.windows=[];var s=a.openWindow();if(null!==r&&r>=0){var u={subscriber:a,window:s,context:null},c={windowTimeSpan:n,windowCreationInterval:r,subscriber:a,scheduler:o};a.add(o.schedule(m,n,u)),a.add(o.schedule(h,r,c))}else{var l={subscriber:a,window:s,windowTimeSpan:n};a.add(o.schedule(f,n,l))}return a}return r.__extends(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new d;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(a.Subscriber);function f(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function h(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o={action:this,subscription:null},a={subscriber:n,window:n.openWindow(),context:o};o.subscription=r.schedule(m,e,a),this.add(o.subscription),this.schedule(t,i)}function m(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}},"./node_modules/rxjs/_esm5/internal/operators/windowToggle.js":function(t,e,n){"use strict";n.r(e),n.d(e,"windowToggle",function(){return l});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/Subject.js"),o=n("./node_modules/rxjs/_esm5/internal/Subscription.js"),a=n("./node_modules/rxjs/_esm5/internal/util/tryCatch.js"),s=n("./node_modules/rxjs/_esm5/internal/util/errorObject.js"),u=n("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),c=n("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function l(t,e){return function(n){return n.lift(new d(t,e))}}var d=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.openings,this.closingSelector))},t}(),p=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Object(c.subscribeToResult)(i,n,n)),i}return r.__extends(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r0){var a=o.indexOf(n);-1!==a&&o.splice(a,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.OuterSubscriber)},"./node_modules/rxjs/_esm5/internal/operators/zip.js":function(t,e,n){"use strict";n.r(e),n.d(e,"zip",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/observable/zip.js");function i(){for(var t=[],e=0;e0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(n("./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js").AsyncAction)},"./node_modules/rxjs/_esm5/internal/scheduler/AnimationFrameScheduler.js":function(t,e,n){"use strict";n.r(e),n.d(e,"AnimationFrameScheduler",function(){return i});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=i.Immediate.setImmediate(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(i.Immediate.clearImmediate(n),e.scheduled=void 0)},e}(n("./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js").AsyncAction)},"./node_modules/rxjs/_esm5/internal/scheduler/AsapScheduler.js":function(t,e,n){"use strict";n.r(e),n.d(e,"AsapScheduler",function(){return i});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n("./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js").AsyncAction)},"./node_modules/rxjs/_esm5/internal/scheduler/QueueScheduler.js":function(t,e,n){"use strict";n.r(e),n.d(e,"QueueScheduler",function(){return i});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e}(n("./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js").AsyncScheduler)},"./node_modules/rxjs/_esm5/internal/scheduler/VirtualTimeScheduler.js":function(t,e,n){"use strict";n.r(e),n.d(e,"VirtualTimeScheduler",function(){return o}),n.d(e,"VirtualAction",function(){return a});var r=n("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),i=n("./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js"),o=function(t){function e(e,n){void 0===e&&(e=a),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return r.__extends(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n.shift())&&(this.frame=e.delay)<=r&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(n("./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js").AsyncScheduler),a=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return r.__extends(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(i.AsyncAction)},"./node_modules/rxjs/_esm5/internal/scheduler/animationFrame.js":function(t,e,n){"use strict";n.r(e),n.d(e,"animationFrame",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/scheduler/AnimationFrameAction.js"),i=new(n("./node_modules/rxjs/_esm5/internal/scheduler/AnimationFrameScheduler.js").AnimationFrameScheduler)(r.AnimationFrameAction)},"./node_modules/rxjs/_esm5/internal/scheduler/asap.js":function(t,e,n){"use strict";n.r(e),n.d(e,"asap",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/scheduler/AsapAction.js"),i=new(n("./node_modules/rxjs/_esm5/internal/scheduler/AsapScheduler.js").AsapScheduler)(r.AsapAction)},"./node_modules/rxjs/_esm5/internal/scheduler/async.js":function(t,e,n){"use strict";n.r(e),n.d(e,"async",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js"),i=new(n("./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js").AsyncScheduler)(r.AsyncAction)},"./node_modules/rxjs/_esm5/internal/scheduler/queue.js":function(t,e,n){"use strict";n.r(e),n.d(e,"queue",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/scheduler/QueueAction.js"),i=new(n("./node_modules/rxjs/_esm5/internal/scheduler/QueueScheduler.js").QueueScheduler)(r.QueueAction)},"./node_modules/rxjs/_esm5/internal/symbol/iterator.js":function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.r(e),n.d(e,"getSymbolIterator",function(){return r}),n.d(e,"iterator",function(){return i}),n.d(e,"$iterator",function(){return o});var i=r(),o=i},"./node_modules/rxjs/_esm5/internal/symbol/observable.js":function(t,e,n){"use strict";n.r(e),n.d(e,"observable",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},"./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js":function(t,e,n){"use strict";n.r(e),n.d(e,"rxSubscriber",function(){return r}),n.d(e,"$rxSubscriber",function(){return i});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),i=r},"./node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js":function(t,e,n){"use strict";function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}n.r(e),n.d(e,"ArgumentOutOfRangeError",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},"./node_modules/rxjs/_esm5/internal/util/EmptyError.js":function(t,e,n){"use strict";function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}n.r(e),n.d(e,"EmptyError",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},"./node_modules/rxjs/_esm5/internal/util/Immediate.js":function(t,e,n){"use strict";n.r(e),n.d(e,"Immediate",function(){return o});var r=1,i={};var o={setImmediate:function(t){var e=r++;return i[e]=t,Promise.resolve().then(function(){var t;(t=i[e])&&t()}),e},clearImmediate:function(t){delete i[t]}}},"./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js":function(t,e,n){"use strict";function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}n.r(e),n.d(e,"ObjectUnsubscribedError",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},"./node_modules/rxjs/_esm5/internal/util/TimeoutError.js":function(t,e,n){"use strict";function r(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}n.r(e),n.d(e,"TimeoutError",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},"./node_modules/rxjs/_esm5/internal/util/UnsubscriptionError.js":function(t,e,n){"use strict";function r(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}n.r(e),n.d(e,"UnsubscriptionError",function(){return i}),r.prototype=Object.create(Error.prototype);var i=r},"./node_modules/rxjs/_esm5/internal/util/canReportError.js":function(t,e,n){"use strict";n.r(e),n.d(e,"canReportError",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/Subscriber.js");function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.Subscriber?i:null}return!0}},"./node_modules/rxjs/_esm5/internal/util/errorObject.js":function(t,e,n){"use strict";n.r(e),n.d(e,"errorObject",function(){return r});var r={e:{}}},"./node_modules/rxjs/_esm5/internal/util/hostReportError.js":function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t})}n.r(e),n.d(e,"hostReportError",function(){return r})},"./node_modules/rxjs/_esm5/internal/util/identity.js":function(t,e,n){"use strict";function r(t){return t}n.r(e),n.d(e,"identity",function(){return r})},"./node_modules/rxjs/_esm5/internal/util/isArray.js":function(t,e,n){"use strict";n.r(e),n.d(e,"isArray",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},"./node_modules/rxjs/_esm5/internal/util/isArrayLike.js":function(t,e,n){"use strict";n.r(e),n.d(e,"isArrayLike",function(){return r});var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},"./node_modules/rxjs/_esm5/internal/util/isDate.js":function(t,e,n){"use strict";function r(t){return t instanceof Date&&!isNaN(+t)}n.r(e),n.d(e,"isDate",function(){return r})},"./node_modules/rxjs/_esm5/internal/util/isFunction.js":function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e),n.d(e,"isFunction",function(){return r})},"./node_modules/rxjs/_esm5/internal/util/isInteropObservable.js":function(t,e,n){"use strict";n.r(e),n.d(e,"isInteropObservable",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/symbol/observable.js");function i(t){return t&&"function"==typeof t[r.observable]}},"./node_modules/rxjs/_esm5/internal/util/isIterable.js":function(t,e,n){"use strict";n.r(e),n.d(e,"isIterable",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/symbol/iterator.js");function i(t){return t&&"function"==typeof t[r.iterator]}},"./node_modules/rxjs/_esm5/internal/util/isNumeric.js":function(t,e,n){"use strict";n.r(e),n.d(e,"isNumeric",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/util/isArray.js");function i(t){return!Object(r.isArray)(t)&&t-parseFloat(t)+1>=0}},"./node_modules/rxjs/_esm5/internal/util/isObject.js":function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.r(e),n.d(e,"isObject",function(){return r})},"./node_modules/rxjs/_esm5/internal/util/isObservable.js":function(t,e,n){"use strict";n.r(e),n.d(e,"isObservable",function(){return i});var r=n("./node_modules/rxjs/_esm5/internal/Observable.js");function i(t){return!!t&&(t instanceof r.Observable||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"./node_modules/rxjs/_esm5/internal/util/isPromise.js":function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.r(e),n.d(e,"isPromise",function(){return r})},"./node_modules/rxjs/_esm5/internal/util/isScheduler.js":function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.r(e),n.d(e,"isScheduler",function(){return r})},"./node_modules/rxjs/_esm5/internal/util/noop.js":function(t,e,n){"use strict";function r(){}n.r(e),n.d(e,"noop",function(){return r})},"./node_modules/rxjs/_esm5/internal/util/not.js":function(t,e,n){"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}n.r(e),n.d(e,"not",function(){return r})},"./node_modules/rxjs/_esm5/internal/util/pipe.js":function(t,e,n){"use strict";n.r(e),n.d(e,"pipe",function(){return i}),n.d(e,"pipeFromArray",function(){return o});var r=n("./node_modules/rxjs/_esm5/internal/util/noop.js");function i(){for(var t=[],e=0;e=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})}function d(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function h(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var t=[],e=0;e1||s(t,e)})})}function s(t,e){try{(n=i[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(t){l(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:g(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function v(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){var o,a,s,u;e=t[n](e),o=r,a=i,s=e.done,u=e.value,Promise.resolve(u).then(function(t){o({value:t,done:s})},a)})}}}function b(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function x(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function w(t){return t&&t.__esModule?t:{default:t}}},"./node_modules/taucharts/dist/plugins/export-to.js":function(t,e,n){var r,i;window,t.exports=(r=n("./node_modules/taucharts/dist/taucharts.js"),i=n("./node_modules/d3-selection/src/index.js"),function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=19)}([function(t,e){t.exports=r},function(t,e){t.exports=i},,,,,function(t,e,n){t.exports=function(t,e){"use strict";var n;return t=t&&t.hasOwnProperty("default")?t.default:t,e=e&&e.hasOwnProperty("default")?e.default:e,function(n){var r;function i(){return document.createElement("canvas")}n.exports,(r=window).DOMParser=window.DOMParser;var o,a=function(n,s,u){if(null!=n||null!=s||null!=u){var c=function(n){var a={opts:n,FRAMERATE:30,MAX_VIRTUAL_PIXELS:3e4,rootEmSize:12,emSize:12,log:function(t){}};1==a.opts.log&&"undefined"!=typeof console&&(a.log=function(t){console.log(t)}),a.init=function(t){var e=0;a.UniqueId=function(){return"canvg"+ ++e},a.Definitions={},a.Styles={},a.StylesSpecificity={},a.Animations=[],a.Images=[],a.ctx=t,a.ViewPort=new function(){this.viewPorts=[],this.Clear=function(){this.viewPorts=[]},this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})},this.RemoveCurrent=function(){this.viewPorts.pop()},this.Current=function(){return this.viewPorts[this.viewPorts.length-1]},this.width=function(){return this.Current().width},this.height=function(){return this.Current().height},this.ComputeSize=function(t){return null!=t&&"number"==typeof t?t:"x"==t?this.width():"y"==t?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}},a.init(),a.ImagesLoaded=function(){for(var t=0;t]*>/,"");var e=new ActiveXObject("Microsoft.XMLDOM");return e.async="false",e.loadXML(t),e}try{var o=n.xmldom?new r.DOMParser(n.xmldom):new r.DOMParser;return o.parseFromString(t,"image/svg+xml")}catch(e){return(o=n.xmldom?new r.DOMParser(n.xmldom):new r.DOMParser).parseFromString(t,"text/xml")}},a.Property=function(t,e){this.name=t,this.value=e},a.Property.prototype.getValue=function(){return this.value},a.Property.prototype.hasValue=function(){return null!=this.value&&""!==this.value},a.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);return(this.value+"").match(/%$/)&&(t/=100),t},a.Property.prototype.valueOrDefault=function(t){return this.hasValue()?this.value:t},a.Property.prototype.numValueOrDefault=function(t){return this.hasValue()?this.numValue():t},a.Property.prototype.addOpacity=function(e){var n=this.value;if(null!=e.value&&""!=e.value&&"string"==typeof this.value){var r=new t(this.value);r.ok&&(n="rgba("+r.r+", "+r.g+", "+r.b+", "+e.numValue()+")")}return new a.Property(this.name,n)},a.Property.prototype.getDefinition=function(){var t=this.value.match(/#([^\)'"]+)/);return t&&(t=t[1]),t||(t=this.value),a.Definitions[t]},a.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},a.Property.prototype.getFillStyleDefinition=function(t,e){var n=this.getDefinition();if(null!=n&&n.createGradient)return n.createGradient(a.ctx,t,e);if(null!=n&&n.createPattern){if(n.getHrefAttribute().hasValue()){var r=n.attribute("patternTransform");n=n.getHrefAttribute().getDefinition(),r.hasValue()&&(n.attribute("patternTransform",!0).value=r.value)}return n.createPattern(a.ctx,t)}return null},a.Property.prototype.getDPI=function(t){return 96},a.Property.prototype.getREM=function(t){return a.rootEmSize},a.Property.prototype.getEM=function(t){return a.emSize},a.Property.prototype.getUnits=function(){var t=this.value+"";return t.replace(/[0-9\.\-]/g,"")},a.Property.prototype.isPixels=function(){if(!this.hasValue())return!1;var t=this.value+"";return!!t.match(/px$/)||!!t.match(/^[0-9]+$/)},a.Property.prototype.toPixels=function(t,e){if(!this.hasValue())return 0;var n=this.value+"";if(n.match(/rem$/))return this.numValue()*this.getREM(t);if(n.match(/em$/))return this.numValue()*this.getEM(t);if(n.match(/ex$/))return this.numValue()*this.getEM(t)/2;if(n.match(/px$/))return this.numValue();if(n.match(/pt$/))return this.numValue()*this.getDPI(t)*(1/72);if(n.match(/pc$/))return 15*this.numValue();if(n.match(/cm$/))return this.numValue()*this.getDPI(t)/2.54;if(n.match(/mm$/))return this.numValue()*this.getDPI(t)/25.4;if(n.match(/in$/))return this.numValue()*this.getDPI(t);if(n.match(/%$/))return this.numValue()*a.ViewPort.ComputeSize(t);var r=this.numValue();return e&&r<1?r*a.ViewPort.ComputeSize(t):r},a.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/s$/)?1e3*this.numValue():(t.match(/ms$/),this.numValue())},a.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/deg$/)?this.numValue()*(Math.PI/180):t.match(/grad$/)?this.numValue()*(Math.PI/200):t.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var s={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return a.Property.prototype.toTextBaseline=function(){return this.hasValue()?s[this.value]:null},a.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(t,e,n,r,i,o){var s=null!=o?this.Parse(o):this.CreateFont("","","","","",a.ctx.font);return{fontFamily:i=i||s.fontFamily,fontSize:r||s.fontSize,fontStyle:t||s.fontStyle,fontWeight:n||s.fontWeight,fontVariant:e||s.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var t=this;this.Parse=function(e){for(var n={},r=a.trim(a.compressSpaces(e||"")).split(" "),i={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},o="",s=0;sthis.x2&&(this.x2=t)),null!=e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),ethis.y2&&(this.y2=e))},this.addX=function(t){this.addPoint(t,null)},this.addY=function(t){this.addPoint(null,t)},this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1),this.addPoint(t.x2,t.y2)},this.addQuadraticCurve=function(t,e,n,r,i,o){var a=t+2/3*(n-t),s=e+2/3*(r-e),u=a+1/3*(i-t),c=s+1/3*(o-e);this.addBezierCurve(t,e,a,u,s,c,i,o)},this.addBezierCurve=function(t,e,n,r,i,o,a,s){var u=[t,e],c=[n,r],l=[i,o],d=[a,s];this.addPoint(u[0],u[1]),this.addPoint(d[0],d[1]);for(var p=0;p<=1;p++){var f=function(t){return Math.pow(1-t,3)*u[p]+3*Math.pow(1-t,2)*t*c[p]+3*(1-t)*Math.pow(t,2)*l[p]+Math.pow(t,3)*d[p]},h=6*u[p]-12*c[p]+6*l[p],m=-3*u[p]+9*c[p]-9*l[p]+3*d[p],g=3*c[p]-3*u[p];if(0!=m){var y=Math.pow(h,2)-4*g*m;if(!(y<0)){var _=(-h+Math.sqrt(y))/(2*m);0<_&&_<1&&(0==p&&this.addX(f(_)),1==p&&this.addY(f(_)));var v=(-h-Math.sqrt(y))/(2*m);0=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var t=new a.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)},this.getAsControlPoint=function(){var t=this.getPoint();return this.control=t},this.getAsCurrentPoint=function(){var t=this.getPoint();return this.current=t},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase()?this.current:new a.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(t){return this.isRelativeCommand()&&(t.x+=this.current.x,t.y+=this.current.y),t},this.addMarker=function(t,e,n){null!=n&&0this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+t;var e=!1;if(this.begin~\.\[:]+)/g,c=/(\.[^\s\+>~\.\[:]+)/g,l=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,d=/(:[\w-]+\([^\)]*\))/gi,p=/(:[^\s\+>~\.\[:]+)/g,f=/([^\s\+>~\.\[:]+)/g;function h(t){var e=[0,0,0],n=function(n,r){var i=t.match(n);null!=i&&(e[r]+=i.length,t=t.replace(n," "))};return t=(t=t.replace(/:not\(([^\)]*)\)/g," $1 ")).replace(/{[\s\S]*/gm," "),n(s,1),n(u,0),n(c,1),n(l,2),n(d,1),n(p,1),t=(t=t.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),n(f,2),e.join("")}"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(t,e,n,r,i,o){var s={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:e,offsetY:n,scaleWidth:r,scaleHeight:i};for(var u in o)o.hasOwnProperty(u)&&(s[u]=o[u]);a(this.canvas,t,s)}),n.exports=a}(n={exports:{}}),n.exports}(n(20),n(21))},function(t,e,n){(function(n){var r,i;void 0===(i="function"==typeof(r=function(){"use strict";function e(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){a(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(t){var e=new XMLHttpRequest;return e.open("HEAD",t,!1),e.send(),200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype?function(t,n,a){var s=o.URL||o.webkitURL,u=document.createElement("a");n=n||t.name||"download",u.download=n,u.rel="noopener","string"==typeof t?(u.href=t,u.origin===location.origin?i(u):r(u.href)?e(t,n,a):i(u,u.target="_blank")):(u.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(u.href)},4e4),setTimeout(function(){i(u)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob((s=t,u=o,void 0===u?u={autoBom:!1}:"object"!=typeof u&&(console.warn("Deprecated: Expected third argument to be a object"),u={autoBom:!u}),u.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\ufeff",s],{type:s.type}):s),n);else if(r(t))e(t,n,o);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){i(a)})}var s,u}:function(t,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,r);var a="application/octet-stream"===t.type,s=/constructor/i.test(o.HTMLElement)||o.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&s)&&"object"==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var l=o.URL||o.webkitURL,d=l.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout(function(){l.revokeObjectURL(d)},4e4)}});o.saveAs=a.saveAs=a,t.exports=a})?r.apply(e,[]):r)||(t.exports=i)}).call(this,n(22))},function(t,e,n){(t.exports=n(23)(!1)).push([t.i,"body > * {\n visibility: hidden;\n}\nbody {\n overflow: hidden;\n}\nbody * {\n visibility: hidden !important;\n}\n\n.tau-chart__print-block {\n position: absolute;\n top: 0;\n left: 0;\n visibility: visible !important;\n display: block !important;\n width: 100%;\n /*height: 100%;*/\n}\n",""])},,,,,,,,,,,function(t,e,n){"use strict";n.r(e);var r,i=n(0),o=n.n(i),a=n(6),s=n.n(a),u=n(7),c=n(8),l=n.n(c),d=n(1),p="Taucharts Export Plug-in:",f=o.a.api.utils,h=o.a.api.pluginsSDK,m=h.tokens(),g=function(t,e){return t.replace(new RegExp("^"+e+"+|"+e+"+$","g"),"")},y=function(t){return(t=Math.round(t))%2?t+1:t},_=function(t){return null===t||""===t||void 0===t},v={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},b=function(t,e){e=e||"all";var n=document.createElement("style");return n.setAttribute("media",e),n.innerHTML=t,n},x=b(l.a,"print"),w=function(){x&&x.parentNode&&x.parentNode.removeChild(x),r&&r.parentNode&&r.parentNode.removeChild(r)};/PhantomJS/.test(navigator.userAgent)||("onafterprint"in window?window.addEventListener("afterprint",w):window.matchMedia("screen").addListener(function(t){t.matches&&w()}));var j=function(t,e,n){var r="data:"+e+";charset=UTF-8,%ef%bb%bf"+encodeURIComponent(n),i=document.createElement("a");i.setAttribute("href",r),i.setAttribute("download",t),i.setAttribute("target","_new"),document.body.appendChild(i),i.click(),document.body.removeChild(i),i=null},O=function(t){return[].slice.call(t.querySelectorAll("text.label")).forEach(function(t){t.innerHTML=[].slice.call(t.querySelectorAll("tspan")).reduce(function(t,e){var n=e.value||e.text||e.textContent||"";return t+(n=n.charAt(0).toUpperCase()+n.substr(1))},"")}),t},C=function(t,e,n){n=null==n?"":String(n);var r=(t||{})[e]||{};return(f.isObject(r.label)?r.label.text:r.label)||n};function E(t){return{onRender:function(){this._info=h.extractFieldsFormatInfo(this._chart.getSpec())},_normalizeExportFields:function(t,e){var n=this._info;return t.map(function(t){var e=t,r=n[t]||{};return"string"==typeof t&&(e={field:t,title:r.label||t}),"function"!=typeof e.value&&(e.value=function(t){var e=t[this.field];return r.isComplexField?(e||{})[r.tickLabel]:e}),e}).filter(function(t){return!e.find(function(e){return t.field===e})})},_handleError:function(t){o.a.api.globalSettings.log([p,t],"error")},_createDataUrl:function(t,e){var n=this;(function(){for(var t=[],e=0;e=200&&n.status<300){var t=n.responseText;i[e]=t,o.splice(o.indexOf(n),1),0===o.length&&r(null,i)}else o.forEach(function(t){return t.abort()}),r(new Error(n.status+": "+n.statusText),null)},n.onerror=function(t){o.forEach(function(t){return t.abort()}),r(t.error,null)},n.open("GET",t,!0),n.send(null)});else setTimeout(function(){return r(null,[])},0)}).apply(void 0,this._cssPaths.concat([function(r,i){if(r)e(r,null);else try{var a=i.join(" ").replace(/&/g,""),u=b(a),c=document.createElement("div");t.fire("beforeExportSVGNode");var l=t.getSVG().cloneNode(!0);t.fire("afterExportSVGNode"),c.appendChild(O(l)),d.select(l).attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg"),l.insertBefore(u,l.firstChild),n._renderAdditionalInfo(l,t),n._addBackground(l,n._backgroundColor);var p=document.createElement("canvas");p.height=l.getAttribute("height"),p.width=l.getAttribute("width"),s()(p,l.parentNode.innerHTML,{renderCallback:function(t){var n=(new XMLSerializer).serializeToString(t);"=0}))?'"'+o+'"':o}return t.concat(i)},[]).join(e))},[a.map(function(t){return t.title}).join(e)]).join("\r\n"),u=(this._fileName||"export")+".csv";j(u,"text/csv",s)},_renderFillLegend:function(e,n,r,i){var o=function(t,e){var n=t[0],r=t[1],i=(r-n)/(e-1),o=f.range(e-2).map(function(t){return n+i*(t+1)});return[n].concat(o).concat(r)},a=this._unit.getScale("color"),s=C(e.guide,"color",a.dim).toUpperCase(),u="text-transform:uppercase;font-weight:600;font-size:"+t.fontSize+"px",c=a.domain().sort(function(t,e){return t-e}),l=a.brewer.length,d=t.fontSize,p=o(c,l).reverse().map(function(t,e){return''}),h=o(c,3).reverse().map(function(t,e,n){return''+t+""}),m=[''," ",' ',p.join("")," "," ",' '+s+"",' ',' '," ",h.join("")," "," Sorry, your browser does not support inline SVG.",""].join(""),g=(new DOMParser).parseFromString(m,"application/xml").documentElement;return document.body.appendChild(g),n.append("g").attr("class","legend").attr("transform","translate("+(i+10)+","+t.paddingTop+")").node().appendChild(g),{h:120,w:0}},_renderColorLegend:function(e,n,r,i){var o=this._unit.getScale("color"),a=C(e.guide,"color",o.dim).toUpperCase(),s=this._getColorMap(r.getChartModelData({excludeFilter:["legend"]}),o,o.dim).values,u=n.append("g").attr("class","legend").attr("transform","translate("+(i+10)+","+t.paddingTop+")");return u.append("text").text(a.toUpperCase()).style({"text-transform":"uppercase","font-weight":"600","font-size":t.fontSize+"px"}),u.selectAll("g").data(s).enter().append("g").call(function(e){e.attr("transform",function(t,e){return"translate(5,"+20*(e+1)+")"}),e.append("circle").attr("r",6).attr("fill",function(t){return o.toColor(t.color)}).attr("class",function(t){return o.toClass(t.color)}),e.append("text").attr("x",12).attr("y",5).text(function(t){return f.escape(_(t.label)?"No "+a:t.label)}).style({"font-size":t.fontSize+"px"})}),{h:20*s.length,w:0}},_renderSizeLegend:function(e,n,r,i,o){var a,s,u=this._unit.getScale("size"),c=C(e.guide,"size",u.dim).toUpperCase(),l=r.getChartModelData().sort(function(t,e){return u(t[u.dim])-u(e[u.dim])}),d=l.length,p=l[0][u.dim],h=l[d-1][u.dim];if(h-p){var m=(s=h-p,Math.log(s)/Math.LN10),g=4-m<0?0:Math.round(4-m),_=Math.pow(10,g),v=(h-p)/5;a=f.unique([p,p+v,p+2*v,p+3*v,h].map(function(t){return t===h||t===p?t:Math.round(t*_)/_}))}else a=[p];var b=a.map(function(t){var n=u(t),r=n/2;return{diameter:y(n+2),radius:r,value:t,className:e.color?"color-definite":""}}.bind(this)).reverse(),x=Math.max.apply(null,b.map(function(t){return t.diameter})),w=t.fontSize,j=0,O=n.append("g").attr("class","legend").attr("transform","translate("+(i+10)+","+(t.paddingTop+o.h+20)+")");O.append("text").text(c.toUpperCase()).style({"text-transform":"uppercase","font-weight":"600","font-size":w+"px"}),O.selectAll("g").data(b).enter().append("g").call(function(t){t.attr("transform",function(){var t="translate(5,"+(j+=x)+")";return j+=10,t}),t.append("circle").attr("r",function(t){return t.radius}).attr("class",function(t){return t.className}).style({opacity:.4}),t.append("g").attr("transform",function(){return"translate("+x+","+w/2+")"}).append("text").attr("x",0).attr("y",0).text(function(t){return t.value}).style({"font-size":w+"px"})})},_renderAdditionalInfo:function(t,e){var n=this._findUnit(e);if(n){var r={h:0,w:0};t=d.select(t);var i=parseInt(t.attr("width"),10);t.attr("height"),t.attr("width",i+160);var o=e.getScaleInfo(n.color);if(o.dim&&!o.discrete){var a=this._renderFillLegend(n,t,e,i);r.h=a.h+20,r.w=a.w}if(o.dim&&o.discrete){var s=this._renderColorLegend(n,t,e,i);r.h=s.h+20,r.w=s.w}var u=e.getScaleInfo(n.size);u.dim&&!u.discrete&&this._renderSizeLegend(n,t,e,i,r)}},_addBackground:function(t,e){if(e&&"transparent"!==e){var n=document.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("fill",e),n.setAttribute("x",0),n.setAttribute("y",0),n.setAttribute("width",t.getAttribute("width")),n.setAttribute("height",t.getAttribute("height")),t.insertBefore(n,t.firstChild)}},onUnitDraw:function(t,e){o.a.api.isChartElement(e)&&"chart"===e.config.namespace&&(this._unit=e)},_getColorMap:function(t,e,n){return f.unique(t.map(function(t){var r=t[n];return{color:e(r),value:r,label:r}}),function(t){return t.value}).reduce(function(t,e){return t.brewer[e.value]=e.color,t.values.push(e),t},{brewer:{},values:[]})},_select:function(t,e){var n=this["_to"+(t=t||"").charAt(0).toUpperCase()+t.slice(1)];n&&n.call(this,e)},_handleMenu:function(t,e,n){t.addEventListener("click",function(t){if("a"===t.target.tagName.toLowerCase()){var r=t.target.getAttribute("data-value");this._select(r,e),n.hide()}}.bind(this)),t.addEventListener("mouseover",function(t){"a"===t.target.tagName.toLowerCase()&&t.target.focus()}.bind(this)),t.addEventListener("keydown",function(t){if(t.keyCode===v.ESCAPE&&n.hide(),t.keyCode===v.DOWN&&(t.target.parentNode.nextSibling?t.target.parentNode.nextSibling.childNodes[0].focus():t.target.parentNode.parentNode.firstChild.childNodes[0].focus()),t.keyCode===v.UP&&(t.target.parentNode.previousSibling?t.target.parentNode.previousSibling.childNodes[0].focus():t.target.parentNode.parentNode.lastChild.childNodes[0].focus()),t.keyCode===v.ENTER){var r=t.target.getAttribute("data-value");this._select(r,e)}t.preventDefault()}.bind(this));var r=null,i=function(){r=setTimeout(function(){n.hide()},100)},o=function(){clearTimeout(r)},a=function(){n.toggle(),n.hidden||t.querySelectorAll("a")[0].focus()};t.addEventListener("blur",i,!0),t.addEventListener("focus",o,!0),this._container.addEventListener("click",a),this._onDestroy(function(){t.removeEventListener("blur",i,!0),t.removeEventListener("focus",o,!0),this._container.removeEventListener("click",a),clearTimeout(r)})},init:function(e){t=t||{},t=f.defaults(t,{backgroundColor:"white",visible:!0,fontSize:13,paddingTop:30}),this._chart=e,this._info={},this._cssPaths=t.cssPaths,this._fileName=t.fileName,this._backgroundColor=t.backgroundColor||"white",this._destroyListeners=[],this._csvSeparator=t.csvSeparator||",",this._exportFields=t.exportFields||[],this._appendFields=t.appendFields||[],this._excludeFields=t.excludeFields||[],this._cssPaths||(this._cssPaths=[],o.a.api.globalSettings.log('[export plugin]: the "cssPath" parameter should be specified for correct operation',"warn"));var n=t.visible?"":"display:none";this._container=e.insertToHeader('Export');var r=e.addBalloon({place:"bottom-left"});r.content(['"].join("")),r.attach(this._container);var i=r.getElement();i.setAttribute("tabindex","-1"),this._handleMenu(i,e,r);var a=e.on("export-to",function(t,e){var n=e.type,r=e.fileName;this._fileName=r||this._fileName,this._select(n,t)}.bind(this)),s=e.on("exportTo",function(t,e){o.a.api.globalSettings.log([p,"`exportTo` event is deprecated, use `export-to` instead."],"warn"),this._select(e,t)}.bind(this));this._onDestroy(function(){r.destroy(),e.removeHandler(a),e.removeHandler(s)})},_onDestroy:function(t){this._destroyListeners.push(t)},destroy:function(){var t;this._destroyListeners.forEach(function(t){t.call(this)},this),(t=this._container)&&t.parentElement&&t.parentElement.removeChild(t)}}}o.a.api.plugins.add("export-to",E),e.default=E},function(t,e){t.exports=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],r=0;r3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n},this.getHelpXML=function(){for(var t=new Array,r=0;r "+c.toRGB()+" -> "+c.toHex());u.appendChild(l),u.appendChild(d),s.appendChild(u)}catch(t){}return s}}},function(t,e){var n=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],r=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function i(t,e,n,r,i){if("string"==typeof t)t=document.getElementById(t);else if("undefined"!=typeof HTMLCanvasElement&&!t instanceof HTMLCanvasElement)return;var o,a=t.getContext("2d");try{try{o=a.getImageData(e,n,r,i)}catch(t){throw new Error("unable to access local image data: "+t)}}catch(t){throw new Error("unable to access image data: "+t)}return o}function o(t,e,n,r,o,s){if(!(isNaN(s)||s<1)){s|=0;var u=i(t,e,n,r,o);u=a(u,0,0,r,o,s),t.getContext("2d").putImageData(u,e,n)}}function a(t,e,i,o,a,s){var u,l,d,p,f,h,m,g,y,_,v,b,x,w,j,O,C,E,S,M,T,k,A,D,I=t.data,P=s+s+1,R=o-1,N=a-1,F=s+1,L=F*(F+1)/2,B=new c,V=B;for(d=1;d>q,0!=A?(A=255/A,I[h]=(g*W>>q)*A,I[h+1]=(y*W>>q)*A,I[h+2]=(_*W>>q)*A):I[h]=I[h+1]=I[h+2]=0,g-=b,y-=x,_-=w,v-=j,b-=H.r,x-=H.g,w-=H.b,j-=H.a,p=m+((p=u+s+1)>q,A>0?(A=255/A,I[p]=(g*W>>q)*A,I[p+1]=(y*W>>q)*A,I[p+2]=(_*W>>q)*A):I[p]=I[p+1]=I[p+2]=0,g-=b,y-=x,_-=w,v-=j,b-=H.r,x-=H.g,w-=H.b,j-=H.a,p=u+((p=l+F)>z,T[h+1]=y*V>>z,T[h+2]=_*V>>z,g-=v,y-=b,_-=x,v-=L.r,b-=L.g,x-=L.b,p=m+((p=u+s+1)>z,T[p+1]=y*V>>z,T[p+2]=_*V>>z,g-=v,y-=b,_-=x,v-=L.r,b-=L.g,x-=L.b,p=u+((p=l+I)r.max&&h();var e=Math.abs(t-r.mid);e0?Math.abs(e-t):n,o=x(i),a=Math.abs(r-o);return Math.abs(r)>3&&a<=3?O:function(t){var e=x(n-t),r=Math.min((o<0?Math.abs(o):0)+(e0,s=this._fill.length>0,u=this._size.length>0;if(this._assignStaticBrewersOrEx(),o||s||u){switch(n.position){case"left":this._container=this._chart.insertToLeftSidebar(this._containerTemplate);break;case"right":this._container=this._chart.insertToRightSidebar(this._containerTemplate);break;case"top":this._container=this._chart.insertToHeader(this._containerTemplate);break;case"bottom":this._container=this._chart.insertToFooter(this._containerTemplate);break;default:this._container=this._chart.insertToRightSidebar(this._containerTemplate)}o&&(a(this._container,"click",l,function(t,n){e._toggleLegendItem(n,"reset")}),a(this._container,"click",d,function(t,n){var r=t.ctrlKey||t.target.matches(p)?"leave-others":"focus-single";e._toggleLegendItem(n,r)}),a(this._container,"mouseover",d,function(t,n){e._highlightToggle(n,!0)}),a(this._container,"mouseout",d,function(t,n){e._highlightToggle(n,!1)}))}},destroy:function(){var t=this._currentFilters,e=this._chart;Object.keys(t).forEach(function(n){return e.removeFilter(t[n])}),this._container&&this._container.parentElement&&(this._clearPanel(),this._container.parentElement.removeChild(this._container))},onSpecReady:function(t,e){this._formatters=c.getFieldFormatters(e,n.formatters)},_getFormat:function(t){return this._formatters[t]?this._formatters[t].format:function(t){return String(t)}},onRender:function(){var t=this;if(e&&n.selectedCategories&&0!==n.selectedCategories.length){var r=this._getLegendColorByScales();return Object.keys(r).forEach(function(e){r[e].legendColorItems.forEach(function(e){var r=e.value,i=e.dim;if(-1===n.selectedCategories.indexOf(JSON.parse(r))){var a=i+r,s=o(i,r);t._currentFilters[a]=t._chart.addFilter({tag:"legend",predicate:function(t){return!s(t)}})}})}),e=!1,void this._chart.refresh()}this._clearPanel(),this._drawColorLegend(),this._drawFillLegend(),this._drawSizeLegend()},_containerTemplate:'
',_template:u.template(['
',"<%=top%>",'
<%=name%>
',"<%=items%>","
"].join("")),_itemTemplate:u.template(["
\">",'
','
','
',"
","
","
",' <%=label%>',"
"].join("")),_resetTemplate:u.template(['
','
Reset
',"
"].join("")),_clearPanel:function(){this._container&&(clearTimeout(this._scrollTimeout),this._getScrollContainer().removeEventListener("scroll",this._scrollListener),this._container.innerHTML="")},_drawFillLegend:function(){var t=this;t._fill.forEach(function(e){var n,r,o,a,s,l=t._chart.select(function(t){return t.config.color===e})[0];if(l){var d=l.config.guide||{},p=l.getScale("color"),f=p.domain().sort(function(t,e){return t-e}),m=i(f),g=m?f.map(Number):f,v=C(g[0],g[g.length-1]),b=(a=t._chart.getSpec(),(s=c.extractFieldsFormatInfo(a)[p.dim].format)||(s=function(t){return new Date(t)}),function(t){return String(s(t))}),x=m?b:v,w=p.brewer.length,j=((d.color||{}).label||{}).text||p.dim,O=function(t){return t.length*h*.618},E=p.isInteger?(g[1]-g[0])%3==0?4:(g[1]-g[0])%2==0?3:2:3,S=_(g,E),M=(m?S.map(function(t){return new Date(t)}):S).map(x);M[0]===M[M.length-1]&&(M=[M[0]]),t._container.insertAdjacentHTML("beforeend",t._template({name:u.escape(j),top:null,items:'
'}));var T=t._container.lastElementChild.querySelector(".tau-chart__legend__gradient-wrapper"),k=T.getBoundingClientRect().width,A=!1;M.reduce(function(t,e){return t+O(e)},0)>k&&(M.length>1&&O(M[0])+O(M[M.length-1])>k?A=!0:M=[M[0],M[M.length-1]]);var D=A?(o=-.382*h/2,{width:k,height:120,barX:0,barY:0,barWidth:20,barHeight:120,textAnchor:"start",textX:u.range(E).map(function(){return 25}),textY:1===M.length?60+.618*h:M.map(function(t,e){var n=(M.length-1-e)/(M.length-1);return h*(1-n)+120*n+o})}):(n=O(M[0])/2,r=O(M[M.length-1])/2,{width:k,height:28+h,barX:0,barY:0,barWidth:k,barHeight:20,textAnchor:"middle",textX:1===M.length?[k/2]:M.map(function(t,e){var i=e/(M.length-1);return n*(1-i)+(k-r)*i}),textY:u.range(E).map(function(){return 28+h})}),I=_(g,w).map(function(t,e){return y("stop",{offset:e/(w-1)*100+"%",style:"stop-color:"+p(t)+';stop-opacity:1"'})}),P="legend-gradient-"+t.instanceId,R=y.apply(void 0,["svg",{class:"tau-chart__legend__gradient",width:D.width,height:D.height},y("defs",y.apply(void 0,["linearGradient",{id:P,x1:"0%",y1:A?"100%":"0%",x2:A?"0%":"100%",y2:"0%"}].concat(I))),y("rect",{class:"tau-chart__legend__gradient__bar",x:D.barX,y:D.barY,width:D.barWidth,height:D.barHeight,fill:"url(#"+P+")"})].concat(M.map(function(t,e){return y("text",{x:D.textX[e],y:D.textY[e],"text-anchor":D.textAnchor},t)})));T.insertAdjacentHTML("beforeend",R)}})},_drawSizeLegend:function(){var t=this;t._size.forEach(function(e){var n=t._chart.select(function(t){return t.config.size===e})[0];if(n){var r=n.config.guide||{},i=n.getScale("size"),o=i.domain().sort(function(t,e){return t-e});if(!Array.isArray(o)||!o.every(isFinite))return;var a=((r.size||{}).label||{}).text||i.dim,s=o[0],c=o[o.length-1],l=[s];if(c-s){var d=b(c-s),p=Math.round(4-d),m=Math.pow(10,p),g=u.unique(t._chart.getDataSources({excludeFilter:["legend"]})[i.source].data.map(function(t){return t[i.dim]}).filter(function(t){return t>=s&&t<=c})).sort(function(t,e){return t-e}),_=v(g,f,i.funcType);l=u.unique(_.map(function(t){return Math.round(t*m)/m}))}var x=C(l[0],l[l.length-1]),w=function(t){return t.length*h*.618};l.reverse();var j=l.map(i),O=Math.max.apply(null,j),E=l.map(x);t._container.insertAdjacentHTML("beforeend",t._template({name:u.escape(a),top:null,items:'
'}));var S=t._container.lastElementChild.querySelector(".tau-chart__legend__size-wrapper"),M=S.getBoundingClientRect().width,T=!1;(Math.max.apply(null,E.map(w))>M/4||1===E.length)&&(T=!0);var k=T?function(){for(var t=h,e=j[0]/2,n=j[j.length-1]/2,r=[e],i=1,o=void 0,a=void 0;i0&&(t._updateResetButtonPosition(),t._scrollTimeout=null,t._scrollListener=function(){var e=t._container.querySelector(l);e.style.display="none",t._scrollTimeout&&clearTimeout(t._scrollTimeout),t._scrollTimeout=setTimeout(function(){t._updateResetButtonPosition(),e.style.display="",t._scrollTimeout=null},250)},t._getScrollContainer().addEventListener("scroll",t._scrollListener))},_toggleLegendItem:function(t,e){var r=this,i=this._currentFilters,a=t?Array.prototype.filter.call(t.parentNode.childNodes,function(t){return t.matches(d)}):null,s=function(t){var e=t.getAttribute("data-dim"),n=t.getAttribute("data-value");return{sid:t.getAttribute("data-scale-id"),dim:e,val:n,key:e+n}},u=function(t){return t in i},c=function(t,e){var n=s(t);if(u(n.key)===e)if(e){var a=i[n.key];delete i[n.key],t.classList.remove("disabled"),r._chart.removeFilter(a)}else{t.classList.add("disabled");var c=o(n.dim,n.val);i[n.key]=r._chart.addFilter({tag:"legend",predicate:function(t){return!c(t)}})}},l=function(e){return e===t},p=!!t&&u(s(t).key),f=function(t,e){t.querySelector(".tau-chart__legend__guide").style.backgroundColor=e?"":"transparent"};if("reset"===e)a.forEach(function(t){c(t,!0),f(t,!0)});else if("leave-others"===e)a.forEach(function(t){l(t)&&c(t,p)}),f(t,p);else if("focus-single"===e){var h=!p&&a.every(function(t){return l(t)||u(s(t).key)});a.forEach(function(t){var e=l(t)||h;c(t,e)}),p&&f(t,!0)}var m=a.filter(function(t){return!u(s(t).key)}).map(function(t){return JSON.parse(s(t).val)});n.onSelect({type:e,selectedCategories:m}),this._chart.refresh()},_highlightToggle:function(t,e){if(!t.matches(".disabled")){var n=t.getAttribute("data-dim"),r=t.getAttribute("data-value"),i=e?o(n,r):function(t){return null};this._chart.select(function(t){return!0}).forEach(function(t){t.fire("highlight",i)})}},_getScrollContainer:function(){return this._container.parentNode.parentNode},_updateResetButtonPosition:function(){this._container.querySelector(l).style.top=this._getScrollContainer().scrollTop+"px"},_generateColorMap:function(t,e){var n=e.length;return t.reduce(function(t,r,i){return t[r]=e[i%n],t},{})},_assignStaticBrewersOrEx:function(){var t=this;t._color.forEach(function(e){var n=t._chart.getSpec().scales[e],r=t._chart.getDataSources({excludeFilter:["legend"]}),i=t._chart.getScaleFactory(r).createScaleInfoByName(e).domain();if(!n.brewer||Array.isArray(n.brewer)){var o=n.brewer||u.range(20).map(function(t){return"color20-"+(1+t)});n.brewer=t._generateColorMap(i,o)}t._legendOrderState[e]=i.reduce(function(t,e,n){return t[e]=n,t},{})})}}}a.a.api.plugins.add("legend",E),e.default=E},9:function(t,e){t.exports=i}}))},"./node_modules/taucharts/dist/plugins/tooltip.js":function(t,e,n){var r,i;window,t.exports=(r=n("./node_modules/taucharts/dist/taucharts.js"),i=n("./node_modules/d3-selection/src/index.js"),function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=33)}({0:function(t,e){t.exports=r},1:function(t,e){t.exports=i},2:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r="tau-chart__tooltip";function i(t,e){return{render:function(t){return this.args=t,t=Object.assign({},t,{fields:this.filterFields(t.fields)}),this.rootTemplate(t)},rootTemplate:function(t){return['
',this.buttonsTemplate(),"
",'
',this.contentTemplate(t),"
"].join("\n")},contentTemplate:function(t){return this.fieldsTemplate(t)},filterFields:function(t){return t},getLabel:function(e){return t.getFieldLabel(e)},getFormatter:function(e){return t.getFieldFormat(e)},fieldsTemplate:function(t){var e=this,n=t.data;return t.fields.map(function(t){return e.itemTemplate({data:n,field:t})}).join("\n")},itemTemplate:function(t){var e=t.data,n=t.field,i=this.getLabel(n),o=this.getFormatter(n)(e[n]);return['
','
'+i+"
",'
'+o+"
","
"].join("\n")},buttonsTemplate:function(){return[this.buttonTemplate({cls:"i-role-exclude",text:"Exclude",icon:function(){return''}})].join("\n")},buttonTemplate:function(t){var e=t.icon,n=t.text,i=t.cls;return['
','
'," "+(e?e()+" ":"")+n,"
","
"].join("\n")},didMount:function(){var e=t.getDomNode().querySelector(".i-role-exclude");e&&e.addEventListener("click",function(){t.excludeHighlightedElement(),t.setState({highlight:null,isStuck:!1})})}}}},3:function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(1),a=n(2),s=i.a.api.utils,u=i.a.api.domUtils,c=i.a.api.pluginsSDK,l="tau-chart__tooltip",d=function(){function t(t){this.settings=s.defaults(t||{},{align:"bottom-right",clickable:!0,clsClickable:l+"__clickable",clsStuck:"stuck",clsTarget:l+"-target",escapeHtml:!0,fields:null,formatters:{},getTemplate:null,spacing:24,winBound:12,onExclude:function(){}}),this.onRender=this._getRenderHandler()}return t.prototype.init=function(t){this._chart=t,this._tooltip=this._chart.addBalloon({spacing:this.settings.spacing,winBound:this.settings.winBound,auto:!0,effectClass:"fade"}),this._initDomEvents(),this.state={highlight:null,isStuck:!1},this.setState(this.state),this._template=this._getTemplate()},t.prototype._getTemplate=function(){var t=Object(a.b)(this,this.settings);return"function"==typeof this.settings.getTemplate?this.settings.getTemplate(t,this,this.settings):t},t.prototype._renderTemplate=function(t,e){return this._template.render({data:t,fields:e})},t.prototype._initDomEvents=function(){var t=this;this._scrollHandler=function(){t.setState({highlight:null,isStuck:!1})},window.addEventListener("scroll",this._scrollHandler,!0),this.settings.clickable&&(this._outerClickHandler=function(e){var n=Array.from(document.querySelectorAll("."+t.settings.clsClickable)).concat(t.getDomNode()).map(function(t){return t.getBoundingClientRect()}),r=Math.min.apply(Math,n.map(function(t){return t.top})),i=Math.min.apply(Math,n.map(function(t){return t.left})),o=Math.max.apply(Math,n.map(function(t){return t.right})),a=Math.max.apply(Math,n.map(function(t){return t.bottom}));(e.clientXo||e.clientYa)&&t.setState({highlight:null,isStuck:!1})})},t.prototype.getDomNode=function(){return this._tooltip.getElement()},t.prototype.setState=function(t){var e=this,n=this.settings,r=this.state,i=this.state=Object.assign({},r,t);r.highlight=r.highlight||{data:null,cursor:null,unit:null},i.highlight=i.highlight||{data:null,cursor:null,unit:null},i.isStuck&&r.highlight.data&&(i.highlight=r.highlight),i.highlight.data!==r.highlight.data&&(i.highlight.data?(this._hideTooltip(),this._showTooltip(i.highlight.data,i.highlight.cursor),this._setTargetSvgClass(!0),requestAnimationFrame(function(){e._setTargetSvgClass(!0)})):i.isStuck||!r.highlight.data||i.highlight.data||(this._removeFocus(),this._hideTooltip(),this._setTargetSvgClass(!1))),!i.highlight.data||r.highlight.cursor&&i.highlight.cursor.x===r.highlight.cursor.x&&i.highlight.cursor.y===r.highlight.cursor.y||(this._tooltip.position(i.highlight.cursor.x,i.highlight.cursor.y),this._tooltip.updateSize());var o=this.getDomNode();this.settings.clickable&&i.isStuck!==r.isStuck&&(i.isStuck?(window.addEventListener("click",this._outerClickHandler,!0),o.classList.add(n.clsStuck),this._setTargetEventsEnabled(!1),this._accentFocus(i.highlight.data),this._tooltip.updateSize()):(window.removeEventListener("click",this._outerClickHandler,!0),o.classList.remove(n.clsStuck),requestAnimationFrame(function(){e._setTargetEventsEnabled(!0);var t=e._chart.getSVG();t&&u.dispatchMouseEvent(t,"mouseleave")})))},t.prototype._showTooltip=function(t,e){var n=this.settings,r=n.fields||"function"==typeof n.getFields&&n.getFields(this._chart)||Object.keys(t),i=this._renderTemplate(t,r);this._tooltip.content(i).position(e.x,e.y).place(n.align).show().updateSize(),this._template.didMount&&this._template.didMount()},t.prototype._hideTooltip=function(){window.removeEventListener("click",this._outerClickHandler,!0),this._template.willUnmount&&this._template.willUnmount(),this._tooltip.hide()},t.prototype.destroy=function(){window.removeEventListener("scroll",this._scrollHandler,!0),this._setTargetSvgClass(!1),this.setState({highlight:null,isStuck:!1}),this._tooltip.destroy()},t.prototype._subscribeToHover=function(){var t=this,e=["ELEMENT.LINE","ELEMENT.AREA","ELEMENT.PATH","ELEMENT.INTERVAL","ELEMENT.INTERVAL.STACKED","ELEMENT.POINT"];this._chart.select(function(t){return e.indexOf(t.config.type)>=0}).forEach(function(e){e.on("data-hover",function(e,n){var r=document.body.getBoundingClientRect();t.setState({highlight:n.data?{data:n.data,cursor:{x:n.event.clientX-r.left,y:n.event.clientY-r.top},unit:n.unit}:null})}),t.settings.clickable&&e.on("data-click",function(e,n){var r=document.body.getBoundingClientRect();t.setState(n.data?{highlight:{data:n.data,cursor:{x:n.event.clientX-r.left,y:n.event.clientY-r.top},unit:n.unit},isStuck:!0}:{highlight:null,isStuck:null})})})},t.prototype.getFieldFormat=function(t){var e=this._formatters[t]?this._formatters[t].format:function(t){return String(t)};return this.settings.escapeHtml?function(t){return s.escapeHtml(e(t))}:e},t.prototype.getFieldLabel=function(t){var e=this._formatters[t]?this._formatters[t].label:t;return this.settings.escapeHtml?s.escapeHtml(e):e},t.prototype._accentFocus=function(t){var e=function(e){return e===t};this._chart.select(function(){return!0}).forEach(function(t){t.fire("highlight",e)})},t.prototype._removeFocus=function(){var t=function(){return null};this._chart.select(function(){return!0}).forEach(function(e){e.fire("highlight",t),e.fire("highlight-data-points",t)})},t.prototype.excludeHighlightedElement=function(){var t=this.state.highlight.data;this._chart.addFilter({tag:"exclude",predicate:function(e){return e!==t}}),this.settings.onExclude(t),this._chart.refresh()},t.prototype._getRenderHandler=function(){return function(){this._formatters=c.getFieldFormatters(this._chart.getSpec(),this.settings.formatters),this._subscribeToHover(),this.setState({highlight:null,isStuck:!1})}},t.prototype._setTargetSvgClass=function(t){o.select(this._chart.getSVG()).classed(this.settings.clsTarget,t)},t.prototype._setTargetEventsEnabled=function(t){t?this._chart.enablePointerEvents():this._chart.disablePointerEvents()},t}();e.a=d},33:function(t,e,n){"use strict";n.r(e);var r=n(0),i=n.n(r),o=n(3);function a(t){return new o.a(t)}i.a.api.plugins.add("tooltip",a),e.default=a}}))},"./node_modules/taucharts/dist/taucharts.js":function(t,e,n){var r,i,o,a,s,u,c,l,d,p,f,h,m,g;window,t.exports=(r=n("./node_modules/d3-selection/src/index.js"),i=n("./node_modules/d3-array/index.js"),o=n("./node_modules/taucharts/node_modules/d3-scale/index.js"),a=n("./node_modules/taucharts/node_modules/topojson-client/index.js"),s=n("./node_modules/d3-transition/src/index.js"),u=n("./node_modules/taucharts/node_modules/d3-format/src/index.js"),c=n("./node_modules/taucharts/node_modules/d3-time-format/src/index.js"),l=n("./node_modules/d3-brush/src/index.js"),d=n("./node_modules/taucharts/node_modules/d3-color/src/index.js"),p=n("./node_modules/d3-axis/src/index.js"),f=n("./node_modules/taucharts/node_modules/d3-geo/src/index.js"),h=n("./node_modules/taucharts/node_modules/d3-quadtree/src/index.js"),m=n("./node_modules/taucharts/node_modules/d3-shape/src/index.js"),g=n("./node_modules/taucharts/node_modules/d3-time/src/index.js"),function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=20)}([function(t,e){t.exports=r},function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"traverseJSON",function(){return yt}),n.d(r,"traverseSpec",function(){return _t}),n.d(r,"clone",function(){return Tt}),n.d(r,"isDate",function(){return kt}),n.d(r,"isObject",function(){return At}),n.d(r,"niceZeroBased",function(){return Dt}),n.d(r,"niceTimeDomain",function(){return It}),n.d(r,"generateHash",function(){return Nt}),n.d(r,"generateRatioFunction",function(){return Ft}),n.d(r,"isSpecRectCoordsOnly",function(){return Lt}),n.d(r,"throttleLastEvent",function(){return Bt}),n.d(r,"splitEvenly",function(){return Vt}),n.d(r,"extRGBColor",function(){return zt}),n.d(r,"extCSSClass",function(){return Ht}),n.d(r,"toRadian",function(){return Ut}),n.d(r,"normalizeAngle",function(){return Wt}),n.d(r,"range",function(){return qt}),n.d(r,"hasXOverflow",function(){return Gt}),n.d(r,"hasYOverflow",function(){return Yt}),n.d(r,"flatten",function(){return Kt}),n.d(r,"unique",function(){return Xt}),n.d(r,"groupBy",function(){return Qt}),n.d(r,"union",function(){return Zt}),n.d(r,"intersection",function(){return $t}),n.d(r,"defaults",function(){return Jt}),n.d(r,"omit",function(){return te}),n.d(r,"memoize",function(){return ee}),n.d(r,"createMultiSorter",function(){return ne}),n.d(r,"pick",function(){return re}),n.d(r,"escape",function(){return ie}),n.d(r,"template",function(){return oe}),n.d(r,"escapeHtml",function(){return ae}),n.d(r,"xml",function(){return le}),n.d(r,"take",function(){return de}),n.d(r,"isChartElement",function(){return fe}),n.d(r,"isFacetUnit",function(){return he});var i={};n.r(i),n.d(i,"appendTo",function(){return ye}),n.d(i,"getScrollbarSize",function(){return _e}),n.d(i,"setScrollPadding",function(){return ve}),n.d(i,"getStyle",function(){return be}),n.d(i,"getStyleAsNum",function(){return xe}),n.d(i,"getContainerSize",function(){return we}),n.d(i,"getAxisTickLabelSize",function(){return je}),n.d(i,"getLabelSize",function(){return Oe}),n.d(i,"getCharSize",function(){return Ce}),n.d(i,"selectOrAppend",function(){return Ee}),n.d(i,"selectImmediate",function(){return Se}),n.d(i,"selectAllImmediate",function(){return Me}),n.d(i,"sortChildren",function(){return Te}),n.d(i,"classes",function(){return ke}),n.d(i,"dispatchMouseEvent",function(){return Ae});var o={};n.r(o),n.d(o,"translate",function(){return De}),n.d(o,"rotate",function(){return Ie}),n.d(o,"getOrientation",function(){return Pe}),n.d(o,"parseTransformTranslate",function(){return Re}),n.d(o,"isIntersect",function(){return Ne}),n.d(o,"getDeepTransformTranslate",function(){return Fe}),n.d(o,"raiseElements",function(){return Le});var a=n(0),s=n(2),u=n(3),c={},l={};function d(t){var e=l[t];return e||(e=function(){for(var e,n,r=this,i=0,o=[];r=r.handler;){if("function"==typeof(n=r.callbacks[t])){if(!e)for(e=[this],i=0;i=0?t.positive:t.negative,s=a[i]||0,u=s+o;return a[i]=u,{nextStack:u,prevStack:s}}},o=i({positive:{},negative:{}}),a=i({positive:{},negative:{}}),s=function(e){return ee(e,t.id)},u=Number.MAX_VALUE,c=Number.MIN_VALUE,l=function(t){return u=tc?t:c,r.value(t)},d=s(function(t){return l(o(t).nextStack)}),p=s(function(t){return l(a(t).prevStack)}),f=function(e){return t.group(e)+"/"+(e[r.dim]>=0?1:-1)},h=Qt(e,f),m=Object.keys(h).sort(t.flip||!t.flip&&t.obsoleteVerticalStackOrder?function(e,n){return t.order(e)-t.order(n)}:function(e,n){return t.order(n)-t.order(e)}).reduce(function(t,e){return t.concat(h[e])},[]);return m.forEach(function(t){d(t),p(t)}),r.fixup(function(t){var e={};return(!t.hasOwnProperty("max")||t.maxu)&&(e.min=u),e}),{group:f,data:function(){return m},yi:d,y0:p}}).reg("size_distribute_evenly",function(t,e){var n=e.minLimit,r=e.maxLimit,i=e.defMin,o=e.defMax,a=t.data(),s=function(t,e){return t-e},u=t.scaleX.discrete?t.scaleX.stepSize()/2:Number.MAX_VALUE,c=a.map(function(e){return t.xi(e)}).sort(s),l=c[0],d=c.slice(1).map(function(t){var e=t-l;return l=t,e}).filter(function(t){return t>0}).sort(s).concat(Number.MAX_VALUE)[0],p=Math.min(d,u),f="number"==typeof n?n:i,h={minSize:f,maxSize:"number"==typeof r?r:Math.max(f,Math.min(o,p))};return t.scaleSize.fixup(function(t){var e={};return t.fixed?t.maxSize>h.maxSize&&(e.maxSize=h.maxSize):(e.fixed=!0,e.minSize=h.minSize,e.maxSize=h.maxSize),e}),{}}).reg("adjustStaticSizeScale",function(t,e){var n=e.minLimit,r=e.maxLimit,i=e.defMin,o=e.defMax,a={minSize:"number"==typeof n?n:i,maxSize:"number"==typeof r?r:o};return t.scaleSize.fixup(function(t){var e={};return t.fixed||(e.fixed=!0,e.minSize=a.minSize,e.maxSize=a.maxSize),e}),{}}).reg("adjustSigmaSizeScale",function(t,e){var n,r,i,o,a=e.minLimit,s=e.maxLimit,u=e.defMin,c=e.defMax,l=function(t,e){return t-e},d=t.data().map(function(e){return t.xi(e)}).sort(l),p=d[0],f=d.slice(1).map(function(t){var e=t-p;return p=t,e}).filter(function(t){return t>0}).sort(l).concat(Number.MAX_VALUE)[0],h=t.scaleX.discrete?t.scaleX.stepSize()/2:Number.MAX_VALUE,m=Math.min(f,h),g="number"==typeof a?a:u,y="number"==typeof s?s:c,_={minSize:g,maxSize:Math.max(g,Math.min(y,(n=m,r=(g+y)/2,i=y,o=g,Math.round(r+(i-r)/(1+Math.exp(-(n-o)/.5))))))};return t.scaleSize.fixup(function(t){var e={};return t.fixed?t.maxSize>_.maxSize&&(e.maxSize=_.maxSize):(e.fixed=!0,e.minSize=_.minSize,e.maxSize=_.maxSize),e}),{}}).reg("avoidScalesOverflow",function(t,e){var n,r,i=e.sizeDirection,o=function(t,e){return!t||t.discrete||"logarithmic"===t.scaleType||i.indexOf(e)<0},a=o(t.scaleX,"x"),s=o(t.scaleY,"y");if(a&&s)return{};t.scaleSize.fixup(function(t){return n=t.minSize,r=t.maxSize,t});var u=t.data().reduce(function(e,i){var o,u,c=t.size(i),l=(c>=n?c:n+c*(r-n))/2;return a||(o=t.xi(i),e.left=Math.min(e.left,o-l),e.right=Math.max(e.right,o+l)),s||(u=t.yi(i),e.top=Math.min(e.top,u-l),e.bottom=Math.max(e.bottom,u+l)),e},{top:Number.MAX_VALUE,right:-Number.MAX_VALUE,bottom:-Number.MAX_VALUE,left:Number.MAX_VALUE}),c=function(e,n,r,i){var o=e.domain(),a=Math.abs(e.value(o[1])-e.value(o[0])),s=(o[1]-o[0])/a;if(0===a)return 1;var u=Math.max(0,-n),c=Math.max(0,r-a),l=t.flip?c:u,d=t.flip?u:c,p=Number(o[0])-(i?d:l)*s,f=Number(o[1])+(i?l:d)*s;return e.fixup(function(t){var e={};if(t.fixedBorders){var i=t.fixedBorders.slice(),o=i[0],a=i[1];(o>n||a=0?1:-1},v=function(e,n,r){var i=Qt(n,function(t){return t[h]}),o=n[0];return e.reduce(function(e,n){return e.concat(i[n]||(s=o,u=r,l=[a=n,t.id(s),u].join(" "),(c={})[h]=a,c[m]=1e-10*u,c[y]=s[y],c[g]=s[g],c[S]=!0,c[S+"id"]=l,c));var a,s,u,c,l},[])},b=function(t,e){return t-e},w=function(){return Xt(f.reduce(function(t,e){return t.concat(e.map(function(t){return t[h]}))},[])).sort(b)},j=l?(n=w(),r=Math.max.apply(Math,n.map(function(t){return Number(t)})),i=t.scaleX.domain(),o=x.generate(i[0],i[1],l,{utc:d}).filter(function(t){return t>=i[0]&&t<=i[1]}),a=0,s=[],u=x.get(l,{utc:d}),o.forEach(function(t){var e=Number(t);if(!(e>=r)){for(var i=a;in.length?e:n,a=1===n.length,s=e[0].id!==n[0].id,u=Boolean(s!==a);return function(t){var e=(r?z:V)({t:t,polyline:o,decreasing:a,rightToLeft:u});a===u?e.shift():e.pop();var n=B(e.map(i),e,a?1-t:t);return n.forEach(function(t){return t.positionIsBeingChanged=!0}),n}}function I(t){var e=t.polylineFrom,n=t.polylineTo,r=t.isCubic,i=e.length,o=n.length;if(o!==i){var a=o2){var i=function(t,e){for(var n,r,i=[e[0]],o=0;o0&&e0&&(t.positionIsBeingChanged=!0)}),e}}function N(t,e){return Array.prototype.push.apply(t,e)}function F(t,e,n){return void 0===e?t:"number"==typeof e?t+n*(e-t):e}function L(t,e,n){if(t===e)return e;var r={};return Object.keys(t).forEach(function(i){return r[i]=F(t[i],e[i],n)}),void 0!==e.id&&(r.id=e.id),r}function B(t,e,n){return t.map(function(t,r){return L(t,e[r],n)})}function V(t){var e=t.t,n=t.polyline,r=t.decreasing,i=t.rightToLeft,o=Boolean(r)!==Boolean(i),a=function(t,e){var n=0;if(t>0){for(var r,i,o,a,s=[0],u=0,c=1;c0){for(var i,o,a,s,u,c,l,d,p=[0],f=0,h=1;h0;o--)if((e=a[o][t])!==r)return n=s[o][t],void(p[t]=f(r,e,i,n));var u,c;p[t]=(u=r,c=i,function(t){return t-u+c})}),function(t){var e=Object.assign({},t);return d.forEach(function(n){e[n]=p[n](t[n])}),e}}function U(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}function W(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=A(t,n,r,i,o);return[a[1],a[2],a[4],a[5]].forEach(function(t){return t.isCubicControl=!0}),Object.keys(o).forEach(function(e){"x"!==e&&"y"!==e&&"id"!==e&&(a[3][e]=F(n[e],o[e],t))}),a}function q(t,e){if(t.length<2)return t.slice(0);if(2===t.length)return[t[0],{x:G(t[0].x,t[1].x,1/3),y:G(t[0].y,t[1].y,1/3)},{x:G(t[0].x,t[1].x,2/3),y:G(t[0].y,t[1].y,2/3)},t[1]];for(var n,r,i,o,a,s,u,c,l,d,p,f,h,m,g=new Array(3*(t.length-1)+1),y=g.length-1,_=0;_0&&(g[3*_-2]=k(1/3,t[_-1],t[_]),g[3*_-1]=k(2/3,t[_-1],t[_]));for(var v=g.slice(0),b=0;b<3;b++){for(g[1]={x:G(g[0].x,g[3].x,1/3),y:G(g[0].y,G(g[3].y,g[2].y,1.5),2/3)},g[y-1]={x:G(g[y].x,g[y-3].x,1/3),y:G(g[y].y,G(g[y-3].y,g[y-2].y,1.5),2/3)},e&&((g[1].y-g[0].y)*(g[3].y-g[2].y)<0&&(g[1]={x:g[1].x,y:g[0].y}),(g[y-1].y-g[y].y)*(g[y-3].y-g[y-2].y)<0&&(g[y-1]={x:g[y-1].x,y:g[y].y})),_=6;_n.y==u>i.y&&(h=G(h*(m=(i.y-r.y)/(u-r.y)),h,1/(1+Math.abs(m))),p=(i.y-r.y)/h),r.y>n.y==a0?[t,e].join(" "):e,u=n(i.text(s));if(us;if(l&&i){var d=Math.floor(s/c*u.length);t[t.length-1]=u.substr(0,d-4)+"...",h=!0}return l&&!i&&t.push(e),l||(t[t.length-1]=u),t},[""]).filter(function(t){return t.length>0});d=i?-1*(g.length-1)*Math.floor(.5*r):d,g.forEach(function(t,e){return a(u,t,1.1,l,d,p,e)}),f.remove()})},rt=function(t,e,n){return e>0&&!document.hidden&&((t=t.transition(n).duration(e)).attr=it),t.onTransitionEnd=function(t){return st(this,t),this},t},it=function(t,e){var n,r,i=this,o=J.transition.prototype.attr.apply(this,arguments);if(0===arguments.length)throw new Error("Unexpected `transition().attr()` arguments.");1===arguments.length?r=t:arguments.length>1&&((n={})[t]=e,r=n);var a="__transitionAttrs__",s="__lastTransitions__",u=at();this.each(function(){var t=this,e={};for(var n in r)"function"==typeof r[n]?e[n]=r[n].apply(this,arguments):e[n]=r[n];this[a]=Object.assign(this[a]||{},e),this[a][s]||Object.defineProperty(this[a],s,{value:{}}),Object.keys(e).forEach(function(e){return t[a][s][e]=u})});var c=function(){var t=this;this[a]&&(Object.keys(r).filter(function(e){return t[a][s][e]===u}).forEach(function(e){return delete t[a][e]}),0===Object.keys(this[a]).length&&delete this[a])};return this.on("interrupt."+u,function(){return i.each(c)}),this.on("end."+u,function(){return i.each(c)}),o},ot=0,at=function(){return++ot},st=function(t,e){if(J.transition.prototype.isPrototypeOf(t)&&!t.empty()){var n=function(){return e.call(null,t)};return t.on("interrupt.d3_on_transition_end",n),t.on("end.d3_on_transition_end",n),t}e.call(null,t)},ut=function(t,e,n,r){var i=r||function(t){return t},o=function(){i(this)};return function(r){var i=r;return e&&(i=i.call(dt(Jt(e,n)))),i=(i=rt(i,t)).call(dt(n)),t>0?i.on("end.d3_animationInterceptor",function(){return i.each(o)}):i.each(o),i}},ct=function(t,e){var n=t.node();return t.selectAll(e).filter(function(){return this.parentNode===n})},lt=function(t,e,n,r,i){void 0===i&&(i="linear");var o="__pathPoints__";return function(t){var a=this;this[o]||(this[o]=n.map(function(){return[]}));var s=n.map(function(e,n){var s,u,c,l,d=Xt(t,r).map(e),p=(X(i)||X("linear"))(d),f=a[o][n];return{pointsFrom:f,pointsTo:p,interpolate:(s=f,u=p,c=Q(i),void 0===c&&(c="polyline"),function(t){return 0===t?s:1===t?u:(l||(l=("cubic"===c?function(t,e){for(var n=2;n=0;n--)i=t[n+1],(r=t[n]).isCubicControl||i.isCubicControl||(t.splice(n+1,0,k(1/3,i,r),k(2/3,i,r)),t[n+1].isCubicControl=!0,t[n+2].isCubicControl=!0);var o=t.filter(function(t,e){return e%3==0}),a=e.filter(function(t,e){return e%3==0}),s=o.map(function(t){return t.id}),u=a.map(function(t){return t.id}),c=s.reduce(function(e,n){return e[n]=t.findIndex(function(t){return t.id===n}),e},{}),l=u.reduce(function(t,n){return t[n]=e.findIndex(function(t){return t.id===n}),t},{}),d=s.filter(function(t){return u.indexOf(t)>=0}),p=o.filter(function(t){return!t.positionIsBeingChanged}),f=a.filter(function(t){return!t.positionIsBeingChanged}),h=H(p,f),m=H(f,p),g=[];return d.forEach(function(n,r){var i,o,a,s=c[n],u=l[n];if(0===r&&(s>0||u>0)&&g.push(D({polylineFrom:t.slice(0,s+1),polylineTo:e.slice(0,u+1),toOppositeScale:0===u?h:m,isCubic:!0})),r>0){var p=c[d[r-1]],f=l[d[r-1]];s-p>3||u-f>3?g.push(I({polylineFrom:t.slice(p,s+1),polylineTo:e.slice(f,u+1),isCubic:!0})):g.push((i={polylineFrom:t.slice(p,s+1),polylineTo:e.slice(f,u+1)},o=i.polylineFrom,a=i.polylineTo,function(t){return B(o.slice(1,3),a.slice(1,3),t)}))}g.push(P({pointFrom:t[s],pointTo:e[u]})),r===d.length-1&&(t.length-s-1>0||e.length-u-1>0)&&g.push(D({polylineFrom:t.slice(s),polylineTo:e.slice(u),toOppositeScale:e.length-u==1?h:m,isCubic:!0}))}),0===g.length&&(e.length>0&&0===d.length||t.length>0&&0===d.length)&&g.push(R({polylineFrom:t.slice(0),polylineTo:e.slice(0),isCubic:!0})),function(t){var e=[];return g.forEach(function(n){var r=n(t);N(e,r)}),e}}:function(t,e){var n=(t=t.filter(function(t){return!t.isInterpolated})).map(function(t){return t.id}),r=e.map(function(t){return t.id}),i=n.filter(function(t){return r.indexOf(t)>=0}),o=t.filter(function(t){return!t.positionIsBeingChanged}),a=e.filter(function(t){return!t.positionIsBeingChanged}),s=H(o,a),u=H(a,o),c=[];return i.forEach(function(o,a){var l=n.indexOf(o),d=r.indexOf(o);if(0===a&&(l>0||d>0)&&c.push(D({isCubic:!1,polylineFrom:t.slice(0,l+1),polylineTo:e.slice(0,d+1),toOppositeScale:0===d?s:u})),a>0){var p=n.indexOf(i[a-1]),f=r.indexOf(i[a-1]);(l-p>1||d-f>1)&&c.push(I({isCubic:!1,polylineFrom:t.slice(p,l+1),polylineTo:e.slice(f,d+1)}))}c.push(P({pointFrom:t[l],pointTo:e[d]})),a===i.length-1&&(t.length-l-1>0||e.length-d-1>0)&&c.push(D({isCubic:!1,polylineFrom:t.slice(l),polylineTo:e.slice(d),toOppositeScale:e.length-d==1?s:u}))}),0===c.length&&(e.length>0&&0===i.length||t.length>0&&0===i.length)&&c.push(R({isCubic:!1,polylineFrom:t.slice(0),polylineTo:e.slice(0)})),function(t){var e=[];return c.forEach(function(n){var r=n(t);N(e,r)}),e}})(s,u)),l(t))})}});return function(t){if(0===t){var n=s.map(function(t){return t.pointsFrom});return e.apply(void 0,n)}if(1===t){var r=s.map(function(t){return t.pointsTo});return a[o]=r,e.apply(void 0,r)}var i=s.map(function(e){return e.interpolate(t)});return a[o]=i,e.apply(void 0,i)}}},dt=function(t){return function(e){return Object.keys(t).forEach(function(n){return e.attr(n,t[n])}),e}},pt=function(t){return function(e){return Object.keys(t).forEach(function(n){return e.classed(n,t[n])}),e}},ft=(Z=function(t,e){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Z(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ht=function(t){function e(e){var n=t.call(this,e)||this;n.config=e,n.config.guide=Jt(n.config.guide||{},{animationSpeed:0,enableColorToBarPosition:!1}),n.config.guide.size=n.config.guide.size||{};var r=n.config.stack,i=n.config.guide.enableColorToBarPosition,o=[e.flip&&E.get("flip"),r&&E.get("stack"),i&&E.get("positioningByColor")];return n.decorators=(n.config.transformRules||o).concat(e.transformModel||[]),n.adjusters=(n.config.adjustRules||[]).concat(e.adjustScales||[]),n}return ft(e,t),e.prototype.defineGrammarModel=function(t){var e=this,n=this.config;this.regScale("x",t("pos",n.x,[0,n.options.width])).regScale("y",t("pos",n.y,[n.options.height,0])).regScale("y",t("pos",n.y,function(t){return["ordinal","period"].indexOf(t.type)>=0?[0,n.options.height]:[n.options.height,0]})).regScale("size",t("size",n.size,{})).regScale("color",t("color",n.color,{})).regScale("split",t("split",n.split,{})).regScale("label",t("label",n.label,{})).regScale("identity",t("identity",n.identity,{}));var r=this.getScale("x"),i=this.getScale("y"),o=this.getScale("size"),a=this.getScale("label"),s=this.getScale("color"),u=this.getScale("split"),c=this.getScale("identity"),l=i.domain(),d=i.discrete?l[0]:Math.max(0,Math.min.apply(Math,l)),p=i.value(d)+.5*i.stepSize(d),f=s.domain(),h={data:function(){return e.data()},flip:!1,scaleX:r,scaleY:i,scaleSize:o,scaleLabel:a,scaleColor:s,scaleSplit:u,scaleIdentity:c,color:function(t){return s.value(t[s.dim])},label:function(t){return a.value(t[a.dim])},group:function(t){return t[s.dim]+"(@taucharts@)"+t[u.dim]},order:function(t){var e=t.split("(@taucharts@)")[0],n=f.indexOf(e);return n<0?Number.MAX_VALUE:n},size:function(t){return o.value(t[o.dim])},id:function(t){return c.value(t[c.dim],t)},xi:function(t){return r.value(t[r.dim])},yi:function(t){return i.value(t[i.dim])},y0:function(){return p}};return h.data().forEach(function(t){return h.id(t)}),h},e.prototype.getGrammarRules=function(){return this.decorators.filter(function(t){return t})},e.prototype.getAdjustScalesRules=function(){return(this.adjusters||[]).filter(function(t){return t})},e.prototype.createScreenModel=function(t){var e=t.flip,n=function(t,e,n){return t?e:n};return{flip:e,id:t.id,x:n(e,t.yi,t.xi),y:n(e,t.xi,t.yi),x0:n(e,t.y0,t.xi),y0:n(e,t.xi,t.y0),size:t.size,group:t.group,order:t.order,label:t.label,color:function(e){return t.scaleColor.toColor(t.color(e))},class:function(e){return t.scaleColor.toClass(t.color(e))},model:t,toFibers:function(){var e=Qt(t.data(),t.group);return Object.keys(e).sort(function(e,n){return t.order(e)-t.order(n)}).reduce(function(t,n){return t.concat([e[n]])},[])}}},e.prototype.drawFrames=function(){var t=this,e=this.config.options,n=function(e){return n=t.screenModel.size(e)/2,r=Math.pow(10,4),Math.round(r*n)/r;var n,r},r=ut,i=function(e,n,i){var o=t.config.guide.animationSpeed,s=e.selectAll("."+n).data(function(t){return[t]},t.screenModel.id);s.exit().call(r(o,null,{width:0},function(t){return a.select(t).remove()})),s.call(r(o,null,i)),s.enter().append("rect").style("stroke-width",0).call(r(o,{width:0},i))},o=this.config.flip,s=o?"y":"x",u=o?"x":"y",c=o?"x0":"y0",l=o?"height":"width",d=o?"width":"height",p=function(e){var r,o,a;i(e,"lvl-top",((r={})[l]=function(t){return n(t)},r[d]=1,r[s]=function(e){return t.screenModel[s](e)-n(e)/2},r[u]=function(e){return t.screenModel[u](e)},r.fill=function(e){return t.screenModel.color(e)},r.class=function(e){return"lvl-top "+t.screenModel.class(e)},r)),i(e,"lvl-btm",((o={})[l]=function(t){return n(t)},o[d]=1,o[s]=function(e){return t.screenModel[s](e)-n(e)/2},o[u]=function(e){return t.screenModel[c](e)},o.fill=function(e){return t.screenModel.color(e)},o.class=function(e){return"lvl-btm "+t.screenModel.class(e)},o)),i(e,"lvl-link",((a={})[l]=.5,a[d]=function(e){return Math.abs(t.screenModel[u](e)-t.screenModel[c](e))},a[s]=function(e){return t.screenModel[s](e)-.25},a[u]=function(e){return Math.min(t.screenModel[u](e),t.screenModel[c](e))},a.fill=function(e){return t.screenModel.color(e)},a.class=function(e){return"lvl-link "+t.screenModel.class(e)},a))},f=function(e){e.attr("class","frame-id-"+t.config.uid).call(function(e){var n=e.selectAll(".generic").data(function(t){return t},t.screenModel.id);n.exit().remove(),n.call(p),n.enter().append("g").attr("class","generic").call(p)})},h=Qt(this.data(),t.screenModel.group),m=Object.keys(h).sort(function(e,n){return t.screenModel.order(e)-t.screenModel.order(n)}).reduce(function(t,e){return t.concat([h[e]])},[]),g=e.container.selectAll(".frame-id-"+t.config.uid).data(m);g.exit().remove(),g.call(f),g.enter().append("g").call(f)},e}(y),mt=function(){return(mt=Object.assign||function(t){for(var e,n=1,r=arguments.length;nthis.maxDepth)throw new Error("Exceeded max recursion depth in deep copy.");return t.populate(this.recursiveDeepCopy,e,n),this.depth--,n}},r.DeepCopier=e,r.deepCopiers=t,r.register=function(n){n instanceof e||(n=new e(n)),t.unshift(n)},r.register({canCopy:function(){return!0},create:function(t){return t instanceof t.constructor?"object"==typeof(e=t.constructor.prototype)?JSON.parse(JSON.stringify(e)):e:{};var e},populate:function(t,e,n){for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}}),r.register({canCopy:function(t){return t instanceof Array},create:function(t){return new t.constructor},populate:function(t,e,n){for(var r=0;r":">",'"':""","'":"'","`":"`"},jt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ot=/\\|'|\r|\n|\u2028|\u2029/g,Ct="(?:"+Object.keys(wt).join("|")+")",Et=RegExp(Ct),St=RegExp(Ct,"g"),Mt={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};function Tt(t){return vt(t)}function kt(t){return t instanceof Date&&!isNaN(Number(t))}function At(t){return null!=t&&"object"==typeof t}function Dt(t){var e=parseFloat(Math.min.apply(Math,t).toFixed(15)),n=parseFloat(Math.max.apply(Math,t).toFixed(15));e===n&&(n-=(n>=0?-1:1)*(n||1)/10);for(var r=[e=Math.min(0,e),n=Math.max(0,n)],i=r[1]-r[0],o=Math.pow(10,Math.floor(Math.log(i/10)/Math.LN10)),a=10/i*o,s=[[.15,10],[.35,5],[.75,2],[1,1],[2,1]],u=-1;a>s[++u][0];);o*=s[u][1],r[0]=Math.floor(r[0]/o)*o,r[1]=Math.ceil(r[1]/o)*o;var c=e-r[0],l=r[1]-n,d=o/2;if(e<0){var p=c>=d?-c:0;r[0]=r[0]-p}if(n>0){var f=l>=d?-l:0;r[1]=r[1]+f}return[parseFloat(r[0].toFixed(15)),parseFloat(r[1].toFixed(15))]}function It(t,e,n){var r=(void 0===n?{utc:!1}:n).utc,i=gt.extent(t),o=i[0],a=i[1],s=+a-+o,u=r?gt.scaleUtc:gt.scaleTime;if(0===s)return o=new Date(o.getTime()-864e5),a=new Date(a.getTime()+864e5),u().domain([o,a]).nice(e).domain();var c=u().domain([o,a]).nice(e);if(e)return c.domain();var l=u().domain([o,a]).nice(e).domain(),d=l[0],p=l[1],f=c.ticks(),h=f.length-1;return(+o-+d)/(+f[1]-+d)<.5&&(o=d),(+p-+a)/(+p-+f[h-1])<.5&&(a=p),[o,a]}var Pt=0,Rt={};function Nt(t){var e=btoa(encodeURIComponent(t)).replace(/=/g,"_");return Rt.hasOwnProperty(e)||(Rt[e]="H"+ ++Pt),Rt[e]}function Ft(t,e,n){var r=0,i=null,o=ee(function(t,e){return Xt(t.map(function(t){return e.reduce(function(e,n){return e.concat(kt(r=t[n])?r.getTime():r);var r},[])}),function(t){return JSON.stringify(t)}).reduce(function(t,e){var n=e[0];return t[n]=t[n]||0,t[n]+=1,t},{})},function(t,e){var n=i===t?r:++r;return i=t,e.join("")+"-"+n});return function(r,i,a){var s=a.length,u=n.getSpec(),c=u.sources["/"].data,l=u.unit.units[0].guide||{};l.padding=l.padding||{l:0,r:0,t:0,b:0};var d=0;"x"===t?d=l.padding.l+l.padding.r:"y"===t&&(d=l.padding.t+l.padding.b);var p,f,h=(i-s*d)/(p=o(c,e),Object.keys(p).reduce(function(t,e){return t+p[e]},0));return f=r,(o(c,e)[f]*h+d)/i}}function Lt(t){var e=!0;try{_t(t,function(t){if(0===t.type.indexOf("COORDS.")&&"COORDS.RECT"!==t.type)throw new Error("Not applicable")},function(t){return t})}catch(t){"Not applicable"===t.message&&(e=!1)}return e}function Bt(t,e,n,r){if(void 0===r&&(r=0),"requestAnimationFrame"===r){var i=!1;return function(){for(var r=[],o=0;o=r&&n.apply(this,i),t.e=a.e,t.ts=a.ts}}function Vt(t,e){var n=t[0],r=t[1],i=(r-n)/(e-1),o=e>=2?qt(e-2).map(function(t){return n+i*(t+1)}):[];return[n].concat(o,[r])}function zt(t){return bt(t)?t:""}function Ht(t){return bt(t)?"":t}function Ut(t){return t/180*Math.PI}function Wt(t){return Math.abs(t)>=360&&(t%=360),t<0&&(t=360+t),t}function qt(t,e){1===arguments.length&&(e=t,t=0);for(var n=[],r=t;r100}function Yt(t,e,n,r){return t+e*(-90===n?-1:1)-r>20}function Kt(t){return Array.isArray(t)?[].concat.apply([],t.map(function(t){return Kt(t)})):t}function Xt(t,e){for(var n={},r=[],i=t.length,o=e||function(t){return String(t)},a=0;a/g,">").replace(/"/g,""").replace(/'/g,"'")}var se=" ",ue=32,ce=["img","input","br","embed","link","meta","area","base","basefont","bgsound","col","command","frame","hr","image","isindex","keygen","menuitem","nextid","param","source","track","wbr","circle","ellipse","line","path","polygon","rect"].reduce(function(t,e){return t[e]=!0,t},{});function le(t){var e=2,n=arguments[1];("object"!=typeof arguments[1]||Array.isArray(arguments[1]))&&(e=1,n={});var r=Kt(Array.prototype.slice.call(arguments,e)),i=1===r.length&&"<"!==r[0].trim()[0],o=ce[t];if(o&&r.length>0)throw new Error('Tag "'+t+'" is void but content is assigned to it');var a="<"+t,s=Object.keys(n).map(function(t){return" "+t+'="'+n[t]+'"'}).join("");s.length>ue&&(s=Object.keys(n).map(function(t){return"\n"+se+t+'="'+n[t]+'"'}).join(""));var u=i?r[0]:"\n"+r.map(function(t){return String(t).split("\n").map(function(t){return""+se+t}).join("\n")}).join("\n")+"\n";return""+a+s+(o?"/>":">"+u+"")}function de(t){var e=t,n={then:function(t){return e=t(e),n},result:function(){return e}};return n}var pe=[ht];function fe(t){return pe.some(function(e){return t instanceof e})}function he(t){return(t.units||[]).some(function(t){return t.hasOwnProperty("units")})}var me=document.createElement("div"),ge=new WeakMap;function ye(t,e){var n;return t instanceof Node?n=t:(me.insertAdjacentHTML("afterbegin",t),n=me.childNodes[0]),e.appendChild(n),n}function _e(t){if(ge.has(t))return ge.get(t);var e=t.style.overflow;t.style.overflow="scroll";var n={width:t.offsetWidth-t.clientWidth,height:t.offsetHeight-t.clientHeight};return t.style.overflow=e,ge.set(t,n),n}function ve(t,e){var n="horizontal"===(e=e||"both")||"both"===e,r="vertical"===e||"both"===e,i=_e(t),o=r?i.width+"px":"0",a=n?i.height+"px":"0";t.style.overflow="hidden",t.style.padding="0 "+o+" "+a+" 0";var s=t.scrollWidth>t.clientWidth,u=t.scrollHeight>t.clientHeight,c=r&&!u?i.width+"px":"0",l=n&&!s?i.height+"px":"0";return t.style.padding="0 "+c+" "+l+" 0",t.style.overflow="",t.style.overflowX=s?"scroll":"hidden",t.style.overflowY=u?"scroll":"hidden",i}function be(t,e){return window.getComputedStyle(t).getPropertyValue(e)}function xe(t,e){return parseInt(be(t,e)||"0",10)}function we(t){var e=xe(t,"padding-left"),n=xe(t,"padding-right"),r=xe(t,"padding-bottom"),i=xe(t,"padding-top"),o=xe(t,"border-top-width")+xe(t,"border-left-width")+xe(t,"border-right-width")+xe(t,"border-bottom-width"),a=t.getBoundingClientRect();return{width:a.width-e-n-2*o,height:a.height-r-i-2*o}}function je(t){var e=document.createElement("div");e.style.position="absolute",e.style.visibility="hidden",e.style.width="100px",e.style.height="100px",e.style.border="1px solid green",e.style.top="0",document.body.appendChild(e),e.innerHTML='\n \n \n \n \n \n ';var n=e.querySelector(".x.axis .tick text");n.textContent=t;var r={width:0,height:0},i=n.getBoundingClientRect();r.width=i.right-i.left,r.height=i.bottom-i.top;var o=0!==t.length?r.width/t.length:0;return r.width=r.width+1.5*o,document.body.removeChild(e),r}function Oe(t,e){var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o="string"==typeof n?n:n+"px",a=t.map(function(t){for(var e=0,n=0;e<=t.length-1;e++)n+=Ce(t.charAt(e),{fontSize:o,fontFamily:r,fontWeight:i}).width;return n}).sort(function(t,e){return e-t})[0],s=t.length,u=parseInt(o);return{width:a,height:u*s+.39*u*s}}var Ce=ee(function(t,e){var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=document.createElement("div");o.style.position="absolute",o.style.visibility="hidden",o.style.border="0px",o.style.top="0",o.style.fontSize=n,o.style.fontFamily=r,o.style.fontWeight=i,document.body.appendChild(o),o.innerHTML=" "===t?" ":t;var a={width:0,height:0},s=o.getBoundingClientRect();return a.width=s.right-s.left,a.height=s.bottom-s.top,document.body.removeChild(o),a},function(t,e){return t+"_"+JSON.stringify(e)});function Ee(t,e){var n={".":function(t,e){return e.classed(t,!0)},"#":function(t,e){return e.attr("id",t)}},r=Object.keys(n).join("");if(e.indexOf(" ")>=0)throw new Error("Selector should not contain whitespaces.");if(r.indexOf(e[0])>=0)throw new Error("Selector must have tag at the beginning.");var i,o=t instanceof Element,s=o?a.select(t):t,u=function(t){return o?t.node():t},c=s.selectAll(e).filter(function(){return this.parentNode===s.node()}).filter(function(t,e){return 0===e});if(!c.empty())return u(c);for(var l,d=-1,p=null,f=1,h=e.length;f<=h;f++)(f==h||r.indexOf(e[f])>=0)&&(l=e.substring(d+1,f),d<0?i=s.append(l):n[p].call(null,l,i),p=e[f],d=f);return u(i)}function Se(t,e){return Me(t,e)[0]||null}function Me(t,e){for(var n=[],r=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=t.firstElementChild;Boolean(i);i=i.nextElementSibling)r.call(i,e)&&n.push(i);return n}function Te(t,e){if(t.childElementCount>0){var n,r,i=Array.prototype.filter.call(t.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE}),o=i.slice().sort(e),a=i.reduce(function(t,e,n){return t.set(e,n),t},new Map),s=o.reduce(function(t,e,i){var s=a.get(e),u=i-s;return u!==r&&(n&&t.push(n),r=u,n={from:s,to:i,elements:[]}),n.elements.push(e),i===o.length-1&&t.push(n),t},[]),u=s.slice().sort(function(t,e){return t.from-e.from}),c=u.reduce(function(t,e,n){return t.set(e,n),t},new Map),l=function(t){for(var e,n,r,i=s.map(function(t,e){return{elements:t.elements,from:c.get(t),to:e}}).sort(ne(function(t,e){return t.elements.length-e.elements.length},t?function(t,e){return e.to-t.to}:function(t,e){return t.to-e.to})),o=0;on.to)for(e=o+1;e=n.to&&r.fromn.from&&r.from<=n.to&&r.from--}return i.filter(function(t){return t.from!==t.to})},d=l(!0),p=l(!1),f=d.length=0?"h":"v"}function Re(t){var e={x:0,y:0},n=t.indexOf("translate(");if(n>=0){var r=t.indexOf(")",n+10),i=t.substring(n+10,r).trim().replace(","," ").replace(/\s+/," ").split(" ");e.x=parseFloat(i[0]),i.length>1&&(e.y=parseFloat(i[1]))}return e}function Ne(t,e,n,r,i,o,a,s){var u,c,l,d,p,f;return f=((l=a-i)*(e-o)-(d=s-o)*(t-i))/(-l*(c=r-e)+(u=n-t)*d),(p=(-c*(t-i)+u*(e-o))/(-l*c+u*d))>=0&&p<=1&&f>=0&&f<=1}function Fe(t){for(var e,n,r={x:0,y:0},i=t;i&&"SVG"!==i.nodeName.toUpperCase();)(n=i.getAttribute("transform"))&&(e=Re(n),r.x+=e.x,r.y+=e.y),i=i.parentNode;return r}function Le(t,e,n){var r=t.selectAll(e).filter(n);if(!r.empty()){var i=a.select(r.node().parentNode).selectAll(e).filter(function(t){return!n(t)}).nodes(),o=i[i.length-1];if(o){var s=Array.prototype.indexOf.call(o.parentNode.childNodes,o),u=o.nextSibling;r.each(function(){Array.prototype.indexOf.call(this.parentNode.childNodes,this)>s||this.parentNode.insertBefore(this,u)})}}}var Be,Ve,ze=function(t){return kt(t)?t.getTime():t},He={cross:function(t,e,n){var r=t(),i=Xt(r.map(function(t){return t[e]}),ze),o=Xt(r.map(function(t){return t[n]}),ze),a=0===i.length?[null]:i;return(0===o.length?[null]:o).reduce(function(t,r){return t.concat(a.map(function(t){var i={};return e&&(i[e]=ze(t)),n&&(i[n]=ze(r)),i}))},[])},cross_period:function(t,e,n,r,i,o){var a=t(),s=!!o&&o.utcTime,u=Xt(a.map(function(t){return t[e]}),ze),c=Xt(a.map(function(t){return t[n]}),ze),l=0===u.length?[null]:u,d=0===c.length?[null]:c;return r&&(l=x.generate(Math.min.apply(Math,u),Math.max.apply(Math,u),r,{utc:s})),i&&(d=x.generate(Math.min.apply(Math,c),Math.max.apply(Math,c),i,{utc:s})),d.reduce(function(t,r){return t.concat(l.map(function(t){var i={};return e&&(i[e]=ze(t)),n&&(i[n]=ze(r)),i}))},[])},groupBy:function(t,e){return Xt(t().map(function(t){return t[e]}),ze).map(function(t){var n;return(n={})[e]=ze(t),n})},none:function(){return[null]}},Ue=function(){function t(t,e,n){var r=t.key,i=t.pipe,o=t.source,a=t.units;void 0===n&&(n={}),this.key=r,this.pipe=i||[],this.source=o,this.units=a,this._frame={key:r,source:o,pipe:this.pipe},this._data=e,this._pipeReducer=function(t,e){return n[e.type](t,e.args)}}return t.prototype.hash=function(){return Nt([this._frame.pipe,this._frame.key,this._frame.source].map(function(t){return JSON.stringify(t)}).join(""))},t.prototype.full=function(){return this._data},t.prototype.part=function(t){return void 0===t&&(t=function(t){return t}),this._frame.pipe.map(t).reduce(this._pipeReducer,this._data)},t}(),We=(Ve=function(t,e){return(Ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Ve(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),qe=function(t){return kt(t)?t.getTime():t},Ge=function(t){var e=this;Object.keys(t).forEach(function(n){return e[n]=t[n]})},Ye=function(t,e,n){return t.map(function(t){return"string"==typeof t?n.get(t):t}).filter(function(t){return t}).reduce(function(t,e){return n=t,void 0===(r=e(t,{}))&&(r={}),Object.assign(new Ge(n),r);var n,r},e)},Ke=function(t){function e(e,n,r,i){var o=t.call(this)||this;return Jt(e.scales,{size_null:{type:"size",source:"?"},split_null:{type:"value",source:"?"},label_null:{type:"value",source:"?"},color_null:{type:"color",source:"?"},identity_null:{type:"identity",source:"?"},"size:default":{type:"size",source:"?"},"color:default":{type:"color",source:"?"},"split:default":{type:"value",source:"?"},"label:default":{type:"value",source:"?"},"identity:default":{type:"identity",source:"?"}}),e.settings=e.settings||{},o.config=e,o.sources=e.sources,o.scales=e.scales,o.unitSet=r,o.grammarRules=i,o.scalesHub=n,o.transformations=Object.assign(e.transformations||{},{where:function(t,e){var n=Object.keys(e||{}).map(function(t){return function(n){return qe(n[t])===e[t]}});return t.filter(function(t){return n.every(function(e){return e(t)})})}}),o}return We(e,t),e.traverseSpec=function(t,e,n,r,i){void 0===r&&(r=null),void 0===i&&(i=null);var o=[],a=function(t,e,n,r,i){o.push(function(){e(t,r,i)}),t.frames&&t.frames.forEach(function(r){(r.units||[]).map(function(i){return a(i,e,n,t,r)})}),o.push(function(){return n(t,r,i)})};return a(t.unit,e,n,r,i),o},e.prototype.unfoldStructure=function(){return this.root=this._expandUnitsStructure(this.config.unit),this.config},e.prototype.getDrawScenarioQueue=function(t){var e=this,n=this.grammarRules,r=this._flattenDrawScenario(t,function(t,r,i){var o=!1===r.expression.inherit?null:i,a=e._createFrameScalesFactoryMethod(o),s=e.unitSet.create(r.type,Object.assign({},r,{options:t.allocateRect(i.key)})),u=new Ge(s.defineGrammarModel(a)),c=Ye(s.getGrammarRules(),u,n);return Ye(s.getAdjustScalesRules(),c,n),s.node().screenModel=s.createScreenModel(c),s}),i=this._flattenDrawScenario(t,function(t,r,i){var o=!1===r.expression.inherit?null:i,a=e._createFrameScalesFactoryMethod(o),s=e.unitSet.create(r.type,Object.assign({},r,{options:t.allocateRect(i.key)})),u=new Ge(s.defineGrammarModel(a)),c=Ye(s.getGrammarRules(),u,n);return s.node().screenModel=s.createScreenModel(c),s.parentUnit=t,s.addInteraction(),s});return r.concat(function(){Object.keys(e.scales).forEach(function(t){return e.scalesHub.createScaleInfo(e.scales[t]).commit()})}).concat(i)},e.prototype._flattenDrawScenario=function(t,n){var r={},i=[],o=[t],a=e.traverseSpec({unit:this.root},function(t,e,a){var s;t.uid=(s=Nt((e?e.uid+"/":"")+JSON.stringify(Object.keys(t).filter(function(e){return"string"==typeof t[e]}).reduce(function(e,n){return e[n]=t[n],e},{}))+"-"+JSON.stringify(a.pipe)),r.hasOwnProperty(s)?s+="-"+ ++r[s]:r[s]=0,s),t.guide=Tt(t.guide);var u,c=n(o[0],t,a);i.push(c),0===t.type.indexOf("COORDS.")&&(u=c,o.unshift(u))},function(t){0===t.type.indexOf("COORDS.")&&o.shift()},null,this._datify({source:this.root.expression.source,pipe:[]}));return a.push(function(){return i}),a},e.prototype._expandUnitsStructure=function(t,e){var n=this;void 0===e&&(e=[]);var r=this;if(!1===t.expression.operator)t.frames=t.frames.map(function(t){return r._datify(t)});else{var i=this._parseExpression(t.expression,e,t.guide);t.transformation=t.transformation||[],t.frames=i.exec().map(function(n){var o=(i.inherit?e:[]).concat([{type:"where",args:n}]).concat(t.transformation);return r._datify({key:n,pipe:o,source:i.source,units:t.units?t.units.map(function(t){var e=Tt(t);return e.guide=t.guide,e}):[]})})}return t.frames.forEach(function(t){return t.units.forEach(function(e){return n._expandUnitsStructure(e,t.pipe)})}),t},e.prototype._createFrameScalesFactoryMethod=function(t){var e=this;return function(n,r,i){var o=r||n+":default";return e.scalesHub.createScaleInfo(e.scales[o],t).create("function"==typeof i?i(e.scales[o]):i)}},e.prototype._datify=function(t){return new Ue(t,this.sources[t.source].data,this.transformations)},e.prototype._parseExpression=function(t,e,n){var r=this,i=t.operator||"none",o=t.source,a=!1!==t.inherit,s=t.params,u={source:o,pipe:a?e:[]},c=He[i];if(!c)throw new Error(i+" operator is not supported");return{source:o,inherit:a,func:c,args:s,exec:function(){return c.apply(void 0,[function(){return r._datify(u).part()}].concat(s||[],[n]))}}},e}(h),Xe="tau-chart__",Qe=n(10),Ze=(Be=function(t,e){return(Be=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Be(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Qe.Tooltip.defaults.baseClass=Xe+"tooltip";var $e,Je,tn=["top","bottom"],en=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ze(e,t),e.prototype._pickPlace=function(t){if(!this.options.auto)return this.options.place;var e,n,r,i,o,a,s,u,c=0|this.options.winBound,l=(e=c,r=window,i=document.documentElement,o=(r.pageYOffset||i.scrollTop)-i.clientTop,a=(r.pageXOffset||i.scrollLeft)-i.clientTop,s=r.innerWidth||i.clientWidth,u=r.innerHeight||i.clientHeight,{top:(n={top:o,right:a+s,bottom:o+u,left:a,width:s,height:u}).top+e,right:n.right-e,bottom:n.bottom-e,left:n.left+e,width:n.width-2*e,height:n.height-2*e}),d=this.options.place.split("-"),p=this.spacing;if(-1!==tn.indexOf(d[0]))switch(t.top-this.height-p<=l.top?d[0]="bottom":t.bottom+this.height+p>=l.bottom&&(d[0]="top"),d[1]){case"left":t.right-this.width<=l.left&&(d[1]="right");break;case"right":t.left+this.width>=l.right&&(d[1]="left");break;default:t.left+t.width/2+this.width/2>=l.right?d[1]="left":t.right-t.width/2-this.width/2<=l.left&&(d[1]="right")}else switch(t.left-this.width-p<=l.left?d[0]="right":t.right+this.width+p>=l.right&&(d[0]="left"),d[1]){case"top":t.bottom-this.height<=l.top&&(d[1]="bottom");break;case"bottom":t.top+this.height>=l.bottom&&(d[1]="top");break;default:t.top+t.height/2+this.height/2>=l.bottom?d[1]="top":t.bottom-t.height/2-this.height/2<=l.top&&(d[1]="bottom")}return d.join("-")},e}(Qe.Tooltip),nn=function(){function t(t,e){this.chart=e,this.handlers=new Map,this.plugins=t.map(this.initPlugin,this)}return t.prototype.initPlugin=function(t){var e=this;t.init&&t.init(this.chart);var n=[];this.handlers.set(t,n);var r=function(r,i){n.push(e.chart.on(r,i,t))};return t.destroy&&r("destroy",t.destroy.bind(t)),Object.keys(t).forEach(function(e){if(0===e.indexOf("on")){var n=e.substr(2).toLowerCase();r(n,t[e].bind(t))}}),t},t.prototype.destroyPlugin=function(t){var e=this;t.destroy&&t.destroy(),this.handlers.get(t).forEach(function(n){e.chart.removeHandler(n,t)})},t.prototype.destroy=function(){var t=this;this.plugins.forEach(function(e){return t.destroyPlugin(e)})},t}(),rn={},on={},an={reg:function(t,e,n){return n?(on[t]=n,rn[t]=function(t,e){this.___tauchartsseed___=new e(this.init(t))},rn[t].prototype=Object.assign({init:function(t){return t},defineGrammarModel:function(t){return this.node().defineGrammarModel(t)},getGrammarRules:function(t){return this.node().getGrammarRules(t)},getAdjustScalesRules:function(t){return this.node().getAdjustScalesRules(t)},createScreenModel:function(t){return this.node().createScreenModel(t)},addInteraction:function(){this.node().addInteraction()},node:function(){return this.___tauchartsseed___},draw:function(){this.node().draw()}},e)):rn[t]=e,this},get:function(t){if(!rn.hasOwnProperty(t))throw new j("Unknown unit type: "+t,O.UNKNOWN_UNIT_TYPE);return rn[t]},create:function(t,e){var n=this.get(t);return on[t]?new n(e,this.get(on[t])):new n(e)}},sn={},un={},cn={reg:function(t,e,n){return void 0===n&&(n=function(t){return t}),sn[t]=e,un[t]=n,cn},get:function(t){return sn[t]},instance:function(t){return void 0===t&&(t={}),{create:function(e,n,r){return new(cn.get(e))(n,(0,un[e])(r,t))}}}},ln=function(){function t(t,e,n){this.registry=t,this.sources=e,this.scales=n}return t.prototype.createScaleInfo=function(t,e){void 0===e&&(e=null);var n=t.dim,r=t.source,i=(this.sources[r].dims[n]||{}).type,o=this.sources[r].data,a=e||new Ue({source:r},o);return t.dimType=i,this.registry.create(t.type,a,t)},t.prototype.createScaleInfoByName=function(t,e){return void 0===e&&(e=null),this.createScaleInfo(this.scales[t],e)},t}(),dn=function(t,e,n){var r=!0,i=null;try{t.reduce(function(t,r){var o=function(t,e){var n=r[e],i=At(n)?JSON.stringify(n):n;return t.push(i),t},a=e.reduce(o,[]).join("/"),s=n.reduce(o,[]).join("/");if(t.hasOwnProperty(a)){var u=t[a];if(u!==s)throw i={type:"RelationIsNotAFunction",keyX:e.join("/"),keyY:n.join("/"),valX:a,errY:[u,s]},new Error("RelationIsNotAFunction")}else t[a]=s;return t},{})}catch(t){if("RelationIsNotAFunction"!==t.message)throw t;r=!1}return{result:r,error:i}},pn=function(t,e,n){var r=t,i=["period","time"].indexOf(n.scale)>=0?function(t){return new Date(t)}:function(t){return t},o=t.reduce(function(t,e,n){return t.set(e,n),t},new Map);if("measure"===n.type||"period"===n.scale)r=t.slice().sort(ne(function(t,n){return i(t[e])-i(n[e])},function(t,e){return o.get(t)-o.get(e)}));else if(n.order){var a=n.order.reduce(function(t,e,n){return t[e]=n,t},{}),s=n.order.length,u="(___"+e+"___)";r=t.map(function(t){var n=a[t[e]];return n=n>=0?n:s,t[u]=n,t}).sort(ne(function(t,e){return t[u]-e[u]},function(t,e){return o.get(t)-o.get(e)})).map(function(t){return delete t[u],t})}return r},fn=function(t,e){var n=document.createElement("div");return n.classList.add(Xe+t),e&&e.appendChild(n),n},hn=function(){var t=fn("layout"),e=fn("layout__header",t),n=fn("layout__container",t),r=fn("layout__sidebar",n),i=fn("layout__content",n),o=fn("layout__content__wrap",i),a=fn("layout__sidebar-right",n);return{layout:t,header:e,content:o,contentContainer:i,leftSidebar:r,rightSidebar:fn("layout__sidebar-right__wrap",a),rightSidebarContainer:a,footer:fn("layout__footer",t)}},mn=function(){function t(t){this.spec=t,this.dist={sources:{"?":{dims:{},data:[{}]},"/":{dims:{},data:[]}},scales:{x_null:{type:"ordinal",source:"?"},y_null:{type:"ordinal",source:"?"},size_null:{type:"size",source:"?"},color_null:{type:"color",source:"?"},split_null:{type:"value",source:"?"},"pos:default":{type:"ordinal",source:"?"},"size:default":{type:"size",source:"?"},"label:default":{type:"value",source:"?"},"color:default":{type:"color",source:"?"},"split:default":{type:"value",source:"?"}},settings:t.settings}}return t.prototype.convert=function(){var t=this.spec,e=this.dist;return this.ruleAssignSourceDims(t,e),this.ruleAssignStructure(t,e),this.ruleAssignSourceData(t,e),this.ruleApplyDefaults(e),e},t.prototype.ruleApplyDefaults=function(t){var e=t.settings||{},n=function(t,e,r){e(t,r),(t.units||[]).map(function(r){return n(r,e,t)})};n(t.unit,function(t,n){if(t.namespace="chart",t.guide=Jt(t.guide||{},{animationSpeed:e.animationSpeed||0,utcTime:e.utcTime||!1}),n&&!t.hasOwnProperty("units")){t=Jt(t,{x:n.x,y:n.y});var r=Tt(n.guide)||{};t.guide.x=Jt(t.guide.x||{},r.x),t.guide.y=Jt(t.guide.y||{},r.y),t.expression.inherit=n.expression.inherit}return!n||t.guide&&t.guide.hasOwnProperty("obsoleteVerticalStackOrder")||(t.guide=Object.assign(t.guide||{},{obsoleteVerticalStackOrder:(n.guide||{}).obsoleteVerticalStackOrder})),t},null)},t.prototype.ruleAssignSourceData=function(t,e){var n=t.spec.dimensions||{},r=e.sources["/"].dims,i=function(t,e){var n=t[e];return At(n)&&!kt(n)&&Object.keys(n).forEach(function(r){return t[e+"."+r]=n[r]}),t};e.sources["/"].data=t.data.map(function(t){var e=Object.keys(t).reduce(i,t);return Object.keys(r).reduce(function(t,e){return t.hasOwnProperty(e)||(t[e]=null),null!==t[e]&&n[e]&&["period","time"].indexOf(n[e].scale)>=0&&(t[e]=new Date(t[e])),t},e)})},t.prototype.ruleAssignSourceDims=function(t,e){var n=t.spec.dimensions;e.sources["/"].dims=Object.keys(n).reduce(function(t,e){return t[e]={type:n[e].type},t},{})},t.prototype.ruleAssignStructure=function(t,e){var n=this,r=function(t){var i=Tt(te(t,"unit"));return n.ruleCreateScales(t,i,e.settings),i.expression=n.ruleInferExpression(t),t.unit&&(i.units=t.unit.map(r)),i},i=r(t.spec.unit);i.expression.inherit=!1,e.unit=i},t.prototype.ruleCreateScales=function(t,e,n){var r=this,i=t.guide||{};["identity","color","size","label","x","y","split"].forEach(function(o){t.hasOwnProperty(o)&&(e[o]=r.scalesPool(o,t[o],i[o]||{},n))})},t.prototype.ruleInferDim=function(t,e){var n=t,r=this.spec.spec.dimensions;if(!r.hasOwnProperty(n))return n;e.hasOwnProperty("tickLabel")?n=t+"."+e.tickLabel:r[t].value&&(n=t+"."+r[t].value);var i=this.dist.sources["/"].dims;return i.hasOwnProperty(n)||(i[n]={type:i[t].type},delete i[t]),n},t.prototype.scalesPool=function(t,e,n,r){var i=t+"_"+e;if(this.dist.scales.hasOwnProperty(i))return i;var o=this.spec.spec.dimensions,a={};if("color"===t&&null!==e&&(a={type:"color",source:"/",dim:this.ruleInferDim(e,n)},n.hasOwnProperty("brewer")&&(a.brewer=n.brewer),o[e]&&o[e].hasOwnProperty("order")&&(a.order=o[e].order),n.hasOwnProperty("min")&&(a.min=n.min),n.hasOwnProperty("max")&&(a.max=n.max),n.hasOwnProperty("nice")&&(a.nice=n.nice)),"size"===t&&null!==e&&(a={type:"size",source:"/",dim:this.ruleInferDim(e,n)},n.hasOwnProperty("func")&&(a.func=n.func),n.hasOwnProperty("min")&&(a.min=n.min),n.hasOwnProperty("max")&&(a.max=n.max),n.hasOwnProperty("minSize")&&(a.minSize=n.minSize),n.hasOwnProperty("maxSize")&&(a.maxSize=n.maxSize)),"label"===t&&null!==e&&(a={type:"value",source:"/",dim:this.ruleInferDim(e,n)}),"split"===t&&null!==e&&(a={type:"value",source:"/",dim:this.ruleInferDim(e,n)}),"identity"===t&&null!==e&&(a={type:"identity",source:"/",dim:this.ruleInferDim(e,n)}),o.hasOwnProperty(e)&&("x"===t||"y"===t)){if(a={type:o[e].scale,source:"/",dim:this.ruleInferDim(e,n)},o[e].hasOwnProperty("order")&&(a.order=o[e].order),n.hasOwnProperty("min")&&(a.min=n.min),n.hasOwnProperty("max")&&(a.max=n.max),n.hasOwnProperty("autoScale")?a.autoScale=n.autoScale:a.autoScale=!0,n.hasOwnProperty("nice")?a.nice=n.nice:a.nice=a.autoScale,n.hasOwnProperty("niceInterval")?a.niceInterval=n.niceInterval:a.niceInterval=null,n.hasOwnProperty("tickPeriod")&&(a.period=n.tickPeriod,a.type="period"),n.hasOwnProperty("tickPeriod")&&n.hasOwnProperty("timeInterval"))throw new Error('Use "tickPeriod" for period scale, "timeInterval" for time scale, but not both');if(n.hasOwnProperty("timeInterval")){a.period=n.timeInterval,a.type="time";var s=x.get(a.period,{utc:r.utcTime});n.hasOwnProperty("min")&&(a.min=s.cast(new Date(n.min))),n.hasOwnProperty("max")&&(a.max=s.cast(new Date(n.max)))}a.fitToFrameByDims=n.fitToFrameByDims,a.ratio=n.ratio}return this.dist.scales[i]=a,i},t.prototype.getScaleConfig=function(t,e){var n=t+"_"+e;return this.dist.scales[n]},t.prototype.ruleInferExpression=function(t){var e={operator:"none",params:[]},n=t.guide||{},r=n.x||{},i=n.y||{},o=this.getScaleConfig("x",t.x),a=this.getScaleConfig("y",t.y);return 0===t.type.indexOf("ELEMENT.")?t.color&&(e={operator:"groupBy",params:[this.ruleInferDim(t.color,n.color||{})]}):"COORDS.RECT"===t.type&&1===t.unit.length&&"COORDS.RECT"===t.unit[0].type&&(e=o.period||a.period?{operator:"cross_period",params:[this.ruleInferDim(t.x,r),this.ruleInferDim(t.y,i),o.period,a.period]}:{operator:"cross",params:[this.ruleInferDim(t.x,r),this.ruleInferDim(t.y,i)]}),Object.assign({inherit:!0,source:"/"},e)},t}(),gn=n(6),yn=n(7),_n=function(){return(_n=Object.assign||function(t){for(var e,n=1,r=arguments.length;nt.computed?{value:n,computed:r}:t},{}).value;return n(e(o))},An=function(t,e){var n=t.dimType,r=t.scaleType,i=[n,r,"*"].join(":"),o=[n,r].join(":");return e[i]||e[o]||e[n]||null},Dn=function(t,e,n){return t.hasOwnProperty(e+":"+n)?t[e+":"+n]:t[""+e]},In=function(t,e){return["day","week","month"].indexOf(t)>=0&&(t+="-short"+(e?"-utc":"")),t},Pn=function(t,e){var n=t.width,r=t.height,i=Math.abs(Ut(e));return{width:Math.max(Math.cos(i)*n,r),height:Math.max(Math.sin(i)*n,r)}},Rn=function(t,e){void 0===e&&(e="x");var n=Wt(t),r="x"===e?[[0,45,"middle"],[45,135,"start"],[135,225,"middle"],[225,315,"end"],[315,360,"middle"]]:[[0,90,"end"],[90,135,"middle"],[135,225,"start"],[225,315,"middle"],[315,360,"end"]],i=r.findIndex(function(t){return n>=t[0]&&ne.xAxisTickLabelLimit&&(t.x.tickFormatWordWrap=!0,t.x.tickFormatWordWrapLines=e.xTickWordWrapLinesLimit,p=Nn(l,e.xAxisTickLabelLimit,e.xTickWordWrapLinesLimit)),d.width>e.yAxisTickLabelLimit&&(t.y.tickFormatWordWrap=!0,t.y.tickFormatWordWrapLines=e.yTickWordWrapLinesLimit,f=Nn(d,e.yAxisTickLabelLimit,e.yTickWordWrapLinesLimit)),o&&(t.y.tickFormatWordWrap=!1,t.y.tickFormatWordWrapLines=1,(f=Nn(d,2*e.yAxisTickLabelLimit,1)).width=20);var h=u?0:1,m=c?0:1,g=t.x.label,y=t.y.label,_=g.text&&!g.hide?1:0,v=y.text&&!y.hide?1:0,b=Pn(p,t.x.rotate),x=Pn(f,t.y.rotate);i?(g.padding=(-e.xAxisPadding-e.xFontLabelHeight)/2+e.xFontLabelHeight,g.paddingNoTicks=g.padding,y.padding=(-e.yAxisPadding-e.yFontLabelHeight)/2,y.paddingNoTicks=y.padding,_=0,v=0):(g.padding=En([h*(e.xTickWidth+b.height),_*(e.distToXAxisLabel+e.xFontLabelHeight)]),g.paddingNoTicks=_*(e.distToXAxisLabel+e.xFontLabelHeight),y.padding=En([m*(e.yTickWidth+x.width),v*e.distToYAxisLabel]),y.paddingNoTicks=v*e.distToYAxisLabel),o&&(y.padding=0,y.paddingNoTicks=0);var w=e.xFontLabelDescenderLineHeight;return t.padding=Object.assign(t.padding,{b:t.x.hide?0:En([t.x.padding,h*(e.xTickWidth+b.height),_*(e.distToXAxisLabel+e.xFontLabelHeight+w)]),l:t.y.hide?0:En([t.y.padding,o?0:m*(e.yTickWidth+x.width),v*(e.distToYAxisLabel+e.yFontLabelHeight)])}),t.paddingNoTicks=Object.assign({},t.paddingNoTicks,{b:t.x.hide?0:En([t.x.padding,_*(e.distToXAxisLabel+e.xFontLabelHeight+w)]),l:t.y.hide?0:En([t.y.padding,v*(e.distToYAxisLabel+e.yFontLabelHeight)])}),t.x=Object.assign(t.x,{density:b.width+2*Dn(e,"xDensityPadding",n.dimType),tickFontHeight:l.height,$minimalDomain:a.length,$maxTickTextW:p.width,$maxTickTextH:p.height,tickFormatWordWrapLimit:e.xAxisTickLabelLimit}),t.y=Object.assign(t.y,{density:x.height+2*Dn(e,"yDensityPadding",r.dimType),tickFontHeight:d.height,$minimalDomain:s.length,$maxTickTextW:f.width,$maxTickTextH:f.height,tickFormatWordWrapLimit:e.yAxisTickLabelLimit}),t}var Ln=function(t){var e=t.unit,n=t.meta,r=t.settings,i=t.allowXVertical,o=t.allowYVertical,a=t.inlineLabels,s=n.dimension(e.x),u=n.dimension(e.y),c=n.scaleMeta(e.x,e.guide.x),l=n.scaleMeta(e.y,e.guide.y),d=c.isEmpty,p=l.isEmpty;e.guide.x.tickFormat=In(e.guide.x.tickFormat||An(s,r.defaultFormats),r.utcTime),e.guide.y.tickFormat=In(e.guide.y.tickFormat||An(u,r.defaultFormats),r.utcTime);var f=!(!i||"measure"===s.dimType),h=!(!o||"measure"===u.dimType);if(e.guide.x.padding=d?0:r.xAxisPadding,e.guide.x.paddingNoTicks=e.guide.x.padding,e.guide.y.padding=p?0:r.yAxisPadding,e.guide.y.paddingNoTicks=e.guide.y.padding,e.guide.x.rotate=f?-90:0,e.guide.x.textAnchor=Rn(e.guide.x.rotate,"x"),e.guide.y.rotate=h?-90:0,e.guide.y.textAnchor=Rn(e.guide.y.rotate,"y"),e.guide=Fn(e.guide,r,c,l,a,he(e)),a){var m=e.guide.x.label,g=e.guide.y.label;m.cssClass+=" inline",m.dock="right",m.textAnchor="end",g.cssClass+=" inline",g.dock="right",g.textAnchor="end"}return e},Bn={NONE:function(t,e,n){var r=Tt(t);return Vn(Tt(r.unit),r.unit,function(t,e){return e.guide.x.tickFontHeight=n.getAxisTickLabelSize("X").height,e.guide.y.tickFontHeight=n.getAxisTickLabelSize("Y").height,e.guide.x.tickFormatWordWrapLimit=n.xAxisTickLabelLimit,e.guide.y.tickFormatWordWrapLimit=n.yAxisTickLabelLimit,e}),r},"BUILD-LABELS":function(t,e){var n=Tt(t),r=[],i=[],o=null,a=null;return yt(n.unit,"units",Tn,function(t,n){if(t.isLeaf)return n;!o&&n.x&&(o=n),!a&&n.y&&(a=n),n.guide=n.guide||{},n.guide.x=n.guide.x||{label:{text:""}},n.guide.y=n.guide.y||{label:{text:""}},n.guide.x.label=At(n.guide.x.label)?n.guide.x.label:{text:n.guide.x.label&&n.guide.x.label.text?n.guide.x.label.text:""},n.guide.y.label=At(n.guide.y.label)?n.guide.y.label:{text:n.guide.y.label&&n.guide.y.label.text?n.guide.y.label.text:""},n.x&&(n.guide.x.label.text=n.guide.x.label.text||e.dimension(n.x).dimName),n.y&&(n.guide.y.label.text=n.guide.y.label.text||e.dimension(n.y).dimName);var s=n.guide.x.label.text;s&&(r.push(s),n.guide.x.tickFormatNullAlias=n.guide.x.hasOwnProperty("tickFormatNullAlias")?n.guide.x.tickFormatNullAlias:"No "+s,n.guide.x.label.text="",n.guide.x.label._original_text=s);var u=n.guide.y.label.text;return u&&(i.push(u),n.guide.y.tickFormatNullAlias=n.guide.y.hasOwnProperty("tickFormatNullAlias")?n.guide.y.tickFormatNullAlias:"No "+u,n.guide.y.label.text="",n.guide.y.label._original_text=u),n}),o&&(o.guide.x.label.text=o.guide.x.label.hide?"":r.join(" → ")),a&&(a.guide.y.label.text=a.guide.y.label.hide?"":i.join(" → ")),n},"BUILD-GUIDE":function(t,e,n){var r=Tt(t);return Vn(Tt(r.unit),r.unit,function(t,r){if(t.isLeaf)return r;var i=!t.isLeaf&&!t.isLeafParent,o=e.scaleMeta(r.x,r.guide.x),a=e.scaleMeta(r.y,r.guide.y),s=!i&&Boolean(o.dimType)&&"measure"!==o.dimType;return r.guide.x.rotate=r.guide.x.rotate||(s?-90:0),r.guide.x.textAnchor=Rn(r.guide.x.rotate),r.guide.x.tickFormat=r.guide.x.tickFormat||An(o,n.defaultFormats),r.guide.y.tickFormat=r.guide.y.tickFormat||An(a,n.defaultFormats),r.guide.x.padding=i?0:n.xAxisPadding,r.guide.x.paddingNoTicks=r.guide.x.padding,r.guide.y.padding=i?0:n.yAxisPadding,r.guide.y.paddingNoTicks=r.guide.y.padding,r.guide=Fn(r.guide,Jt({distToXAxisLabel:o.isEmpty?n.xTickWidth:n.distToXAxisLabel,distToYAxisLabel:a.isEmpty?n.yTickWidth:n.distToYAxisLabel},n),o,a,null,he(r)),r.guide.x=Object.assign(r.guide.x,{cssClass:i?r.guide.x.cssClass+" facet-axis":r.guide.x.cssClass,avoidCollisions:!!i||r.guide.x.avoidCollisions}),r.guide.y=Object.assign(r.guide.y,{cssClass:i?r.guide.y.cssClass+" facet-axis":r.guide.y.cssClass,avoidCollisions:!i&&r.guide.y.avoidCollisions}),r.guide=Object.assign(r.guide,{showGridLines:r.guide.hasOwnProperty("showGridLines")?r.guide.showGridLines:t.isLeafParent?"xy":""}),r}),r},"BUILD-COMPACT":function(t,e,n){var r=Tt(t);return Vn(Tt(r.unit),r.unit,function(t,r){return t.isLeaf?r:(r.guide.hasOwnProperty("showGridLines")||(r.guide.showGridLines=t.isLeafParent?"xy":""),t.isLeafParent?Ln({unit:r,meta:e,settings:Jt({xTickWordWrapLinesLimit:1,yTickWordWrapLinesLimit:1},n),allowXVertical:!0,allowYVertical:!1,inlineLabels:!0}):(r.guide.x.cssClass+=" facet-axis compact",r.guide.x.avoidCollisions=!0,r.guide.y.cssClass+=" facet-axis compact",r.guide.y.avoidCollisions=!0,Ln({unit:r,meta:e,settings:Jt({xAxisPadding:0,yAxisPadding:0,distToXAxisLabel:0,distToYAxisLabel:0,xTickWordWrapLinesLimit:1,yTickWordWrapLinesLimit:1},n),allowXVertical:!1,allowYVertical:!0,inlineLabels:!1})))}),r},AUTO:function(t,e,n){return["BUILD-LABELS","BUILD-GUIDE"].reduce(function(t,r){return Bn[r](t,e,n)},t)},COMPACT:function(t,e,n){return["BUILD-LABELS","BUILD-COMPACT"].reduce(function(t,r){return Bn[r](t,e,n)},t)}},Vn=function(t,e,n){var r,i=((r=e).options=r.options||{},r.guide=r.guide||{},r.guide.padding=Jt(r.guide.padding||{},{l:0,b:0,r:0,t:0}),r.guide.x=Sn(r.guide,"x"),r.guide.x=Mn(r.guide,"x",{cssClass:"x axis",scaleOrient:"bottom",textAnchor:"middle"}),r.guide.y=Sn(r.guide,"y",{rotate:-90}),r.guide.y=Mn(r.guide,"y",{cssClass:"y axis",scaleOrient:"left",textAnchor:"end"}),r.guide.size=Sn(r.guide,"size"),r.guide.color=Sn(r.guide,"color"),r);i=n(Tn(i),i);var o,a,s,u=te((o=i,a=t.guide||{},s={x:["label"],y:["label"],size:["label"],color:["label"],padding:[]},Object.keys(s).forEach(function(t){var e=s[t];!function(t,e,n,r){var i=t.hasOwnProperty(n)?t[n]:{};i=i||{},r.forEach(function(t){Object.assign(e.guide[n][t],i[t])})}(a,o,t,e)}),Object.assign(o.guide,Object.keys(a).reduce(function(t,e){return s.hasOwnProperty(e)||(t[e]=a[e]),t},{})),i=o),"units");return(i.units||[]).forEach(function(t){return Vn(Tt(t),(r=u,(e=t).guide=e.guide||{},e.guide.padding=e.guide.padding||{l:0,t:0,r:0,b:0},e.hasOwnProperty("units")||((e=Jt(e,r)).guide=Jt(e.guide,Tt(r.guide)),e.guide.x=Jt(e.guide.x,Tt(r.guide.x)),e.guide.y=Jt(e.guide.y,Tt(r.guide.y))),e),n);var e,r}),i},zn=function(){function t(t){this.spec=t,this.isApplicable=Lt(t.unit)}return t.prototype.transform=function(t){var e=this.spec;if(!this.isApplicable)return e;var n,r,i,o,a,s,u=e.settings.size,c=e.settings.specEngine.find(function(t){return u.width<=t.width||u.height<=t.height});return n=c.name,r=e.settings,i=e,o=function(e,n){return t.getScaleInfo(n||e+":default")},a={dimension:function(t){var e=i.scales[t],n=i.sources[e.source].dims[e.dim]||{};return{dimName:e.dim,dimType:n.type,scaleType:e.type}},scaleMeta:function(t){var e=o("pos",t).domain(),n=i.scales[t],r=i.sources[n.source].dims[n.dim]||{};return{dimName:n.dim,dimType:r.type,scaleType:n.type,values:e,isEmpty:null==r.type}}},s=(Bn[n]||Bn.NONE)({unit:Tt(i.unit)},a,r),i.unit=s.unit,i},t}(),Hn=function(){function t(){}return t.optimizeXAxisLabel=function(t,e){var n=e.xAxisTickLabelLimit,r=function(t){if(!t.guide.x.hide&&!t.guide.x.hideTicks&&0!==t.guide.x.rotate){t.guide.x.rotate=0,t.guide.x.textAnchor="middle";var e=0-Math.min(n,t.guide.x.$maxTickTextW)+t.guide.x.$maxTickTextH;i(t,e)}(t.units||[]).filter(function(t){return"COORDS.RECT"===t.type}).forEach(function(t){return r(t)})},i=function(e,n){t!==e&&"extract-axes"===e.guide.autoLayout?(t.guide.x.padding+=n,t.guide.padding.b+=n):(e.guide.x.label.padding+=e.guide.x.label.padding>0?n:0,e.guide.padding.b+=e.guide.padding.b>0?n:0)};r(t)},t.hideAxisTicks=function(t,e,n){var r=function(t){var e="x"===n?"b":"l",i=t.guide;if(!i[n].hide&&!i[n].hideTicks){he(t)&&"y"===n||(i[n].hideTicks=!0);var o=i[n].label.text&&!i[n].label.hide;i.padding[e]=i.paddingNoTicks?i.paddingNoTicks[e]:0,i[n].padding=i[n].paddingNoTicks||0,i[n].label.padding=o?i[n].label.paddingNoTicks:0}(t.units||[]).filter(function(t){return"COORDS.RECT"===t.type}).forEach(function(t){return r(t)})};r(t)},t.facetsLabelsAtTop=function(t,e){var n=function(t){var e=t.units||[];if(he(t)){var r=t.guide;r.y.facetAxis=!0,r.y.rotate=0,r.y.textAnchor="start",e.forEach(function(t){t.guide.padding.t=20})}e.filter(function(t){return"COORDS.RECT"===t.type}).forEach(function(t){return n(t)})};n(t)},t}(),Un=function(t){return t.$maxTickTextW},Wn=function(t){return 0==t.rotate?t.$maxTickTextW:t.$maxTickTextH},qn=function(t){return t.density},Gn=function(t){var e=[],n=[],r=function(t){if("COORDS.RECT"===t.type&&t.units&&t.units[0]&&"COORDS.RECT"===t.units[0].type){var i=t.x.replace(/^x_/,""),o=t.y.replace(/^y_/,"");"null"!==i&&e.push(i),"null"!==o&&n.push(o),t.units.forEach(r)}};r(t.unit);var i={},o={},a=function(t){"COORDS.RECT"===t.type&&t.frames.forEach(function(t){t.key&&(Object.keys(t.key).forEach(function(r){e.indexOf(r)>=0&&(i.hasOwnProperty(r)||(i[r]=[]),i[r].indexOf(t.key[r])<0&&i[r].push(t.key[r])),n.indexOf(r)>=0&&(o.hasOwnProperty(r)||(o[r]=[]),o[r].indexOf(t.key[r])<0&&o[r].push(t.key[r]))}),t.units&&t.units.forEach(a))})};return a(t.unit),{xFacetCount:Object.keys(i).reduce(function(t,e){return t*i[e].length},1),yFacetCount:Object.keys(o).reduce(function(t,e){return t*o[e].length},1)}},Yn={"entire-view":function(t,e,n,r){var i=n.unit.guide,o=Gn(n),a=o.xFacetCount,s=o.yFacetCount;s>0&&Hn.facetsLabelsAtTop(n.unit,n.settings);var u=i.paddingNoTicks?i.padding.l-i.paddingNoTicks.l:0,c=i.paddingNoTicks?i.padding.b-i.paddingNoTicks.b:0,l=i.paddingNoTicks&&t.height-ct.height||a*n.settings.minFacetWidth+u>t.width,d=i.paddingNoTicks&&t.width-ut.height||a*n.settings.minFacetWidth+u>t.width;l&&Hn.hideAxisTicks(n.unit,n.settings,"x"),d&&Hn.hideAxisTicks(n.unit,n.settings,"y");var p=t.width;if(e("x",n.unit,Un)<=t.width)r(n.unit,n.settings);else{var f=e("x",n.unit,Wn);if(f>t.width){var h=Math.max(t.width,e("x",n.unit,qn));p=Math.min(f,h)}}var m=Math.max(t.height,e("y",n.unit,qn));return!l&&p>t.width&&Hn.hideAxisTicks(n.unit,n.settings,"x"),!d&&m>t.height&&Hn.hideAxisTicks(n.unit,n.settings,"y"),{newW:t.width,newH:t.height}},minimal:function(t,e,n){return{newW:e("x",n.unit,qn),newH:e("y",n.unit,qn)}},normal:function(t,e,n,r){Gn(n).yFacetCount>0&&Hn.facetsLabelsAtTop(n.unit,n.settings);var i=n.unit.guide;i.paddingNoTicks&&(t.width-i.padding.l+i.paddingNoTicks.lt.width){var s=Math.max(t.width,e("x",n.unit,qn));o=Math.min(a,s)}}return{newW:o,newH:Math.max(t.height,e("y",n.unit,qn))}},"fit-width":function(t,e,n,r){var i=n.unit.guide,o=i.paddingNoTicks?i.padding.l-i.paddingNoTicks.l:0;return(i.paddingNoTicks&&t.width-ot.width)&&Hn.hideAxisTicks(n.unit,n.settings,"y"),e("x",n.unit,Un)<=t.width&&r(n.unit,n.settings),{newW:t.width,newH:e("y",n.unit,qn)}},"fit-height":function(t,e,n){var r=n.unit.guide,i=r.paddingNoTicks?r.padding.b-r.paddingNoTicks.b:0;return(r.paddingNoTicks&&t.height-it.height)&&Hn.hideAxisTicks(n.unit,n.settings,"x"),{newW:e("x",n.unit,qn),newH:t.height}}},Kn=function(){function t(t){this.spec=t,this.isApplicable=Lt(t.unit)}return t.prototype.transform=function(t){var e=this.spec;if(!this.isApplicable)return e;var n=e.settings.fitModel;if(!n)return e;var r,i,o,a,s,u,c,l,d=e.scales,p=function(t,e){return t.discrete?e*t.domain().length:4*e},f=function(e,n,r,i){void 0===i&&(i=null);var o="x"===e?n.x:n.y,a="x"===e?n.y:n.x,s=n.guide,u=r("x"===e?s.x:s.y),c=n.units[0],l="x"===e?s.padding.l+s.padding.r:s.padding.b+s.padding.t;if("ELEMENT.INTERVAL"===c.type&&"y"===e===Boolean(c.flip)&&c.label&&!t.getScaleInfo(c.label,i).isEmpty()){var h,m=2*(s.label&&s.label.fontSize?s.label.fontSize:10),g=t.getScaleInfo(o,i);if(g.discrete&&(null==c.guide.enableColorToBarPosition?!c.stack:c.guide.enableColorToBarPosition)){var y=c.color;if(y){var _=t.getScaleInfo(y,i);_.discrete&&(_.domain(),h=_)}}var v=n.frames.reduce(function(t,e){return t+function(t){var e=t.part(),n=Xt(e.map(function(t){return t[g.dim]})).length,r=1;if(h){var i=e.reduce(function(t,e){var n=e[g.dim],r=e[h.dim];return t[n]=t[n]||{},t[n][r]||(t[n][r]=!0),t},{}),o=Object.keys(i).map(function(t){return Object.keys(i[t]).length});r=Math.max.apply(Math,o)}return n*r*m}(e)},0),b=p(g,u);return l+Math.max(v,b)}if("COORDS.RECT"!==c.type){var x=t.getScaleInfo(o,i);return l+p(x,u)}var w,j,O=(w=n.frames,j=d[a].dim,w.reduce(function(t,e){var n=(e.key||{})[j];return t[n]=t[n]||[],t[n].push(e),t},{})),C=Object.keys(O).map(function(t){return O[t].map(function(t){return f(e,t.units[0],r,t)}).reduce(function(t,e){return t+e},0)});return l+Math.max.apply(Math,C)},h=e.settings.size,m=h.width,g=h.height,y=Yn[n];if(y){var _=y(h,f,e,Hn.optimizeXAxisLabel);m=_.newW,g=_.newH}return e.settings.size=(r=h,i={width:m,height:g},o=e.settings.avoidScrollAtRatio,a=e.settings.getScrollbarSize(t.getLayout().contentContainer),s=i.width>r.width&&i.width<=r.width*o?r.width:i.width,u=i.height>r.height&&i.height<=r.height*o?r.height:i.height,c=r.width-s,l=r.height-u>=0?0:a.width,{height:u-(c>=0?0:a.height),width:s-l}),e},t}(),Xn=function(){function t(t){this.spec=t,this.isApplicable=t.settings.autoRatio&&Lt(t.unit)}return t.prototype.transform=function(t){var e=this.spec;if(!this.isApplicable)return e;try{this.ruleApplyRatio(e,t)}catch(t){if("Not applicable"!==t.message)throw t}return e},t.prototype.ruleApplyRatio=function(t,e){var n=function(t){return"COORDS.RECT"===t.type||"RECT"===t.type},r=function(t,e,n,i){void 0===i&&(i=0),e(t,i)&&(t.units||[]).map(function(t){return r(t,e,n,i+1)}),n(t,i)},i=[],o=[];r(t.unit,function(t,e){if(e>1||!n(t))throw new Error("Not applicable");return i.push(t.x),o.push(t.y),1===(t.units||[]).map(function(t){if(!n(t)&&0!==t.type.indexOf("ELEMENT."))throw new Error("Not applicable");return t}).filter(n).length},function(){return 0});var a=function(e){return t.scales[e]},s=function(t){return"/"===t.source&&!t.ratio&&!t.fitToFrameByDims},u=function(t){return"ordinal"===t.type||"period"===t.type&&!t.period},c=i.map(a).filter(s),l=o.map(a).filter(s);if([c.length,l.length].some(function(t){return 2===t})){var d=function(t){return t.dim},p=function(t,e,n){t.fitToFrameByDims=n.slice(0,e).map(d)},f=function(t,n){2===n.filter(u).length&&(n.forEach(p),n[0].ratio=Ft(t,n.map(d),e))};f("x",c),f("y",l)}},t}(),Qn=function(){function t(t){this.spec=t,this.isApplicable="EXTRACT"===t.settings.layoutEngine&&Lt(t.unit)}return t.prototype.transform=function(){var t=this.spec;if(!this.isApplicable)return t;try{this.ruleExtractAxes(t)}catch(t){if("Not applicable"!==t.message)throw t;console.log("[TauCharts]: can't extract axes for the given chart specification")}return t},t.prototype.ruleExtractAxes=function(t){var e=function(t){return"COORDS.RECT"===t.type||"RECT"===t.type},n=function(t){return t?10:0},r={l:0,r:10,t:10,b:0},i={l:0,b:0},o=[],a=[];_t(t.unit,function(t,n){if(n>1||!e(t))throw new Error("Not applicable");t.guide=t.guide||{};var s=t.guide,u=s.padding||{l:0,r:0,t:0,b:0},c=s.paddingNoTicks||{l:0,b:0};return r.l+=u.l,r.r+=u.r,r.t+=u.t,r.b+=u.b,i.l+=c.l,i.b+=c.b,o.push(Object.assign({},r)),a.push(Object.assign({},i)),1===(t.units||[]).map(function(t){if(!e(t)&&0!==t.type.indexOf("ELEMENT."))throw new Error("Not applicable");return t}).filter(e).length},function(t){var e=o.pop(),s=a.pop(),u=t.guide||{};u.x=u.x||{},u.x.padding=u.x.padding||0,u.x.paddingNoTicks=u.x.paddingNoTicks||0,u.y=u.y||{},u.y.padding=u.y.padding||0,u.y.paddingNoTicks=u.y.paddingNoTicks||0,u.padding={l:n(t.y),r:n(1),t:n(1),b:n(t.x)},u.paddingNoTicks={l:0,b:0},u.autoLayout="extract-axes",u.x.padding+=r.b-e.b,u.y.padding+=r.l-e.l,u.x.paddingNoTicks+=i.b-s.b,u.y.paddingNoTicks+=i.l-s.l}),t.unit.guide.padding=r,t.unit.guide.paddingNoTicks=i},t}(),Zn=function(){function t(t){var e=void 0===t?{}:t,n=e.src,r=void 0===n?null:n,i=e.timeout,o=void 0===i?Number.MAX_SAFE_INTEGER:i,a=e.syncInterval,s=void 0===a?Number.MAX_SAFE_INTEGER:a,u=e.callbacks,c=void 0===u?{}:u,l=this;this.setTimeoutDuration(o),this.setSyncInterval(s),this.setCallbacks(c),this._running=!1,this._queue=[],this._result=r,this._syncDuration=0,this._asyncDuration=0,this._requestedFrameId=null,this._visibilityChangeHandler=function(){if(l._running&&l._requestedFrameId){var t=l._getCancelFrameFunction(),e=l._getRequestFrameFunction();t(l._requestedFrameId),l._requestedFrameId=e(l._requestedFrameCallback)}},this._tasksCount=0,this._finishedTasksCount=0}return t.prototype.setTimeoutDuration=function(e){t.checkType(e,"number","timeout"),this._timeout=e},t.prototype.setSyncInterval=function(e){t.checkType(e,"number","syncInterval"),this._syncInterval=e},t.prototype.setCallbacks=function(e){t.checkType(e,"object","callbacks"),this._callbacks=Object.assign(this._callbacks||{},e)},t.prototype.addTask=function(t){return this._queue.push(t),this._tasksCount++,this},t.prototype.run=function(){if(this._running)throw new Error("Task Runner is already running");this._running=!0,t.runnersInProgress++,document.addEventListener("visibilitychange",this._visibilityChangeHandler),this._loopTasks()},t.prototype.isRunning=function(){return this._running},t.prototype._loopTasks=function(){for(var e,n,r,i,o=0,a=this._syncInterval/t.runnersInProgress;this._running&&!(r=this._asyncDuration>this._timeout)&&!(i=o>a)&&(e=this._queue.shift());){if(null===(n=this._runTask(e)))return;this._syncDuration+=n,this._asyncDuration+=n,o+=n}r&&this._queue.length>0&&(this.stop(),this._callbacks.timeout&&this._callbacks.timeout.call(null,this._asyncDuration,this)),!r&&i&&this._queue.length>0&&this._requestFrame(),0===this._queue.length&&(this.stop(),this._callbacks.done&&this._callbacks.done.call(null,this._result,this))},t.prototype._runTask=function(t){var e=performance.now();if(this._callbacks.error)try{this._result=t.call(null,this._result,this)}catch(t){return this.stop(),this._callbacks.error.call(null,t,this),null}else this._result=t.call(null,this._result,this);var n=performance.now()-e;return this._finishedTasksCount++,this._callbacks.progress&&this._callbacks.progress.call(null,this._finishedTasksCount/this._tasksCount,this),n},t.prototype._requestFrame=function(){var t=this,e=performance.now(),n=function(){t._requestedFrameId=null;var n=performance.now();t._asyncDuration+=n-e,t._loopTasks()},r=this._getRequestFrameFunction();this._requestedFrameCallback=n,this._requestedFrameId=r(n)},t.prototype._getRequestFrameFunction=function(){var t=this;return document.hidden?function(e){return t._requestedFrameType="idle",window.requestIdleCallback(e,{timeout:17})}:function(e){return t._requestedFrameType="animation",requestAnimationFrame(e)}},t.prototype._getCancelFrameFunction=function(){switch(this._requestedFrameType){case"animation":return function(t){return cancelAnimationFrame(t)};case"idle":return function(t){return window.cancelIdleCallback(t)}}},t.prototype.stop=function(){if(!this._running)throw new Error("Task Runner is already stopped");this._running=!1,t.runnersInProgress--,document.removeEventListener("visibilitychange",this._visibilityChangeHandler),this._requestedFrameId&&(this._getCancelFrameFunction()(this._requestedFrameId),this._requestedFrameId=null)},t.checkType=function(t,e,n){if(typeof t!==e)throw new Error('Task Runner "'+n+'" property is not "'+e+'"')},t}();Zn.runnersInProgress=0;var $n,Jn,tr=Zn,er=(Jn=function(t,e){return(Jn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Jn(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),nr=function(){return(nr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0){var l=c.findIndex(function(t){return t.closest.distance!==c[0].closest.distance||t.closest.secondaryDistance!==c[0].closest.secondaryDistance}),d=l<0?c:c.slice(0,l);if(1===d.length)o=d[0].closest.data,a=d[0].closest.node,s=d[0].unit;else{var p=d.reduce(function(t,e){return t+e.closest.x},0)/d.length,f=d.reduce(function(t,e){return t+e.closest.y},0)/d.length,h=Math.atan2(f-r,p-n)+Math.PI,m=Math.round((d.length-1)*h/2/Math.PI),g=d[m].closest;o=g.data,a=g.node,s=d[m].unit}}u.forEach(function(e){return e.unit.fire(i,{event:t,data:o,node:a,unit:s})})},e.prototype._initPointerEvents=function(){var t=this;this._liveSpec.settings.syncPointerEvents||(this._pointerAnimationFrameId=null);var e=rr.select(this._svg),n=this._liveSpec.settings.syncPointerEvents?function(t){return function(){return t(a.event)}}:function(e){return function(){var n=a.event;t._pointerAnimationFrameId&&"mousemove"!==n.type&&t._cancelPointerAnimationFrame(),t._pointerAnimationFrameId||(t._pointerAnimationFrameId=requestAnimationFrame(function(){t._pointerAnimationFrameId=null,e(n)}))}},r=function(e){return t._handlePointerEvent(e)};e.on("mousemove",n(r)),e.on("click",n(r)),e.on("mouseleave",n(function(e){"none"!==window.getComputedStyle(t._svg).pointerEvents&&t.select(function(){return!0}).forEach(function(t){return t.fire("data-hover",{event:e,data:null,node:null,unit:null})})}))},e.prototype._cancelPointerAnimationFrame=function(){cancelAnimationFrame(this._pointerAnimationFrameId),this._pointerAnimationFrameId=null},e.prototype._setupTaskRunner=function(t){var e=this;return this._resetTaskRunner(),this._taskRunner=new tr({timeout:t.settings.renderingTimeout||Number.MAX_SAFE_INTEGER,syncInterval:t.settings.asyncRendering?t.settings.syncRenderingInterval:Number.MAX_SAFE_INTEGER,callbacks:{done:function(){e._completeRendering(),e._renderingPhase=null},timeout:function(t,n){e._displayTimeoutWarning({timeout:t,proceed:function(){e.disablePointerEvents(),n.setTimeoutDuration(Number.MAX_SAFE_INTEGER),n.run()},cancel:function(){e._cancelRendering()}}),e.enablePointerEvents(),e.fire("renderingtimeout",t)},progress:function(t){var n={spec:0,draw:1}[e._renderingPhase]/2+t/2;e._reportProgress(n)},error:t.settings.handleRenderingErrors?function(n){e._cancelRendering(),e._displayRenderingError(n),e.fire("renderingerror",n),t.settings.log(["An error occured during chart rendering.",'Set "handleRenderingErrors: false" in chart settings to debug.',"Error message: "+n.message].join(" "),"ERROR")}:null}}),this._taskRunner},e.prototype._resetTaskRunner=function(){this._taskRunner&&this._taskRunner.isRunning()&&(this._taskRunner.stop(),this._taskRunner=null)},e.prototype.renderTo=function(t,e){this._resetProgressLayout(),this.disablePointerEvents(),this._insertLayout(t,e);var n=this._createLiveSpec();if(!n)return this._svg=null,this._layout.content.innerHTML=this._emptyContainer,void this.enablePointerEvents();var r=this._createGPL(n),i=this._setupTaskRunner(n);this._scheduleDrawScenario(i,r),this._scheduleDrawing(i,r),i.run()},e.prototype._insertLayout=function(t,e){this._target=t,this._defaultSize=Object.assign({},e);var n=rr.select(t).node();if(null===n)throw new Error("Target element not found");this._layout.layout.parentNode!==n&&n.appendChild(this._layout.layout);var r=this._layout.content,i=_e(this._layout.contentContainer);this._layout.contentContainer.style.padding="0 "+i.width+"px "+i.height+"px 0",ve(this._layout.rightSidebarContainer,"vertical");var o=Object.assign({},e)||{};if(!o.width||!o.height){var a=r.parentElement,s=a.scrollLeft,u=a.scrollTop;r.style.display="none",o=Jt(o,we(r.parentNode)),r.style.display="",r.parentElement.scrollLeft=s,r.parentElement.scrollTop=u,o.height||(o.height=we(this._layout.layout).height)}this.configGPL.settings.size=o},e.prototype._createLiveSpec=function(){var t=this;return this._liveSpec=Tt(te(this.configGPL,"plugins")),this._liveSpec.sources=this.getDataSources(),this._liveSpec.settings=this.configGPL.settings,this._experimentalSetupAnimationSpeed(this._liveSpec),this.isEmptySources(this._liveSpec.sources)?null:(this._liveSpec=this.transformers.reduce(function(e,n){return new n(e).transform(t)},this._liveSpec),this.destroyNodes(),this.fire("specready",this._liveSpec),this._liveSpec)},e.prototype._experimentalSetupAnimationSpeed=function(t){t.settings.initialAnimationSpeed=t.settings.initialAnimationSpeed||t.settings.animationSpeed;var e=t.settings.experimentalShouldAnimate(t)?t.settings.initialAnimationSpeed:0;t.settings.animationSpeed=e;var n=function(t){t.guide=t.guide||{},t.guide.animationSpeed=e,t.units&&t.units.forEach(n)};n(t.unit)},e.prototype._createGPL=function(t){var e=new Ke(t,this.getScaleFactory(),an,E),n=e.unfoldStructure();return this.onUnitsStructureExpanded(n),e},e.prototype._scheduleDrawScenario=function(t,e){var n=this,r=rr.select(this._layout.content),i=e.config.settings.size;t.addTask(function(){return n._renderingPhase="spec"}),e.getDrawScenarioQueue({allocateRect:function(){return{slot:function(t){return r.selectAll(".uid_"+t)},frameId:"root",left:0,top:0,width:i.width,containerWidth:i.width,height:i.height,containerHeight:i.height}}}).forEach(function(e){return t.addTask(e)})},e.prototype._scheduleDrawing=function(t,e){var n=this,r=e.config.settings.size;t.addTask(function(t){n._renderingPhase="draw",n._renderRoot({scenario:t,newSize:r}),n._cancelPointerAnimationFrame(),n._scheduleRenderScenario(t)})},e.prototype._resetProgressLayout=function(){this._createProgressBar(),this._clearRenderingError(),this._clearTimeoutWarning()},e.prototype._renderRoot=function(t){var e=this,n=t.scenario,r=t.newSize,i=rr.select(this._layout.content),o=n[0].config.uid,a=ir(i,"svg").attr("width",Math.floor(r.width)).attr("height",Math.floor(r.height));a.attr("class")||a.attr("class",Xe+"svg"),this._svg=a.node(),this._initPointerEvents(),this.fire("beforerender",this._svg);var s=a.selectAll("g.frame-root").data([o],function(t){return t});s.enter().append("g").classed(Xe+"cell cell frame-root uid_"+o,!0).merge(s).call(function(t){t.classed("tau-active",!0),rt(t,e.configGPL.settings.animationSpeed,"frameRootToggle").attr("opacity",1)}),s.exit().call(function(t){t.classed("tau-active",!1),rt(t,e.configGPL.settings.animationSpeed,"frameRootToggle").attr("opacity",1e-6).remove()})},e.prototype._scheduleRenderScenario=function(t){var e=this;t.forEach(function(t){e._taskRunner.addTask(function(){t.draw(),e.onUnitDraw(t.node()),e._renderedItems.push(t)})})},e.prototype._completeRendering=function(){ve(this._layout.contentContainer),this._layout.rightSidebar.style.maxHeight=this._liveSpec.settings.size.height+"px",this.enablePointerEvents(),this._svg&&this.fire("render",this._svg),ve(this._layout.rightSidebarContainer,"vertical")},e.prototype._cancelRendering=function(){this.enablePointerEvents(),this._resetTaskRunner(),this._cancelPointerAnimationFrame()},e.prototype._createProgressBar=function(){var t=rr.select(this._layout.header),e=ir(t,"div."+Xe+"progress");e.select("div."+Xe+"progress__value").remove();var n=e.append("div").classed(Xe+"progress__value",!0).style("width",0);this._reportProgress=function(t){requestAnimationFrame(function(){e.classed(Xe+"progress_active",t<1),n.style("width",100*t+"%")})}},e.prototype._displayRenderingError=function(t){this._layout.layout.classList.add(Xe+"layout_rendering-error")},e.prototype._clearRenderingError=function(){this._layout.layout.classList.remove(Xe+"layout_rendering-error")},e.prototype.getScaleFactory=function(t){return void 0===t&&(t=null),new ln(cn.instance(this._liveSpec.settings),t||this._liveSpec.sources,this._liveSpec.scales)},e.prototype.getScaleInfo=function(t,e){return void 0===e&&(e=null),this.getScaleFactory().createScaleInfoByName(t,e)},e.prototype.getSourceFiltersIterator=function(t){var e=this,n=Kt(Object.keys(this._filtersStore.filters).map(function(t){return e._filtersStore.filters[t]})).filter(function(e){return!t(e)}).map(function(t){return t.predicate});return function(t){return n.reduce(function(e,n){return e&&n(t)},!0)}},e.prototype.getDataSources=function(t){var e=this;void 0===t&&(t={});var n=this._chartDataModel(this._originData);return Object.keys(n).filter(function(t){return"?"!==t}).reduce(function(r,i){var o,a=n[i],s=e.getSourceFiltersIterator((o=i,function(e){return t.excludeFilter&&-1!==t.excludeFilter.indexOf(e.tag)||e.src!==o}));return r[i]={dims:a.dims,data:a.data.filter(s)},r},{"?":n["?"]})},e.prototype.isEmptySources=function(t){return!Object.keys(t).filter(function(t){return"?"!==t}).filter(function(e){return t[e].data.length>0}).length},e.prototype.getChartModelData=function(t,e){return void 0===t&&(t={}),void 0===e&&(e="/"),this.getDataSources(t)[e].data},e.prototype.getDataDims=function(t){return void 0===t&&(t="/"),this._originData[t].dims},e.prototype.getData=function(t){return void 0===t&&(t="/"),this._originData[t].data},e.prototype.setData=function(t,e){void 0===e&&(e="/"),this._originData[e].data=t,this.refresh()},e.prototype.getSVG=function(){return this._svg},e.prototype.addFilter=function(t){t.src=t.src||"/";var e=t.tag,n=this._filtersStore.filters[e]=this._filtersStore.filters[e]||[],r=this._filtersStore.tick++;return t.id=r,n.push(t),r},e.prototype.removeFilter=function(t){var e=this;return Object.keys(this._filtersStore.filters).map(function(n){e._filtersStore.filters[n]=e._filtersStore.filters[n].filter(function(e){return e.id!==t})}),this},e.prototype.refresh=function(){this._target&&this.renderTo(this._target,this._defaultSize)},e.prototype.resize=function(t){void 0===t&&(t={}),this.renderTo(this._target,t)},e.prototype.select=function(t){return this._nodes.filter(t)},e.prototype.traverseSpec=function(t,e){var n=function(t,e,r,i){e(t,r,i),t.frames?t.frames.forEach(function(r){(r.units||[]).map(function(i){return n(i,e,t,r)})}):(t.units||[]).map(function(r){return n(r,e,t,null)})};n(t.unit,e,null,null)},e.prototype.getSpec=function(){return this._liveSpec},e.prototype.getLayout=function(){return this._layout},e.prototype._displayTimeoutWarning=function(t){var e=this,n=t.proceed,r=t.cancel,i=t.timeout,o=Math.round(100/3/1.5),a=function(t){return Math.round(100/3/1.5*t)};this._layout.content.style.height="100%",this._layout.content.insertAdjacentHTML("beforeend",'\n
\n \n \n Rendering took more than '+Math.round(i)/1e3+'s\n Would you like to continue?\n \n \n Continue\n \n \n Cancel\n \n \n
\n '),this._layout.content.querySelector("."+Xe+"rendering-timeout-continue-btn").addEventListener("click",function(){e._clearTimeoutWarning(),n.call(e)}),this._layout.content.querySelector("."+Xe+"rendering-timeout-cancel-btn").addEventListener("click",function(){e._clearTimeoutWarning(),r.call(e)})},e.prototype._clearTimeoutWarning=function(){var t=or(this._layout.content,"."+Xe+"rendering-timeout-warning");t&&(this._layout.content.removeChild(t),this._layout.content.style.height="")},e}(h),sr={},ur={},cr=function(t){var e="Chart type "+t+" is not supported.";throw console.log(e),console.log("Use one of "+Object.keys(sr).join(", ")+"."),new j(e,O.NOT_SUPPORTED_TYPE_CHART)},lr={validate:function(t,e){return ur.hasOwnProperty(t)||cr(t),ur[t].reduce(function(t,n){return t.concat(n(e)||[])},[])},get:function(t){var e=sr[t];return"function"!=typeof e&&cr(t),e},add:function(t,e,n){return void 0===n&&(n=[]),sr[t]=e,ur[t]=n,lr},getAllRegisteredTypes:function(){return sr}},dr=($n=function(t,e){return($n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}$n(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),pr=function(t){function e(n){var r=t.call(this,n)||this;return n.autoResize&&e.winAware.push(r),r}return dr(e,t),e.prototype.applyConfig=function(e){var n=lr.validate(e.type,e);if(n.length>0)throw new Error(n[0]);var r=lr.get(e.type);(e=Jt(e,{autoResize:!0})).settings=ar.setupSettings(e.settings),e.dimensions=ar.setupMetaInfo(e.dimensions,e.data),t.prototype.applyConfig.call(this,r(e))},e.prototype.destroy=function(){var n=e.winAware.indexOf(this);-1!==n&&e.winAware.splice(n,1),t.prototype.destroy.call(this)},e}(ar);function fr(t){return t}pr.winAware=[],pr.resizeOnWindowEvent=function(){var t;function e(){t=0;for(var e=0,n=pr.winAware.length;eb&&b>2&&v.length>2;)v=n.ticks(--b)}else v=n.domain();r.hideTicks&&(v=l?v.filter(function(t){return 0==t}):[]);var x=null==s?n.tickFormat?n.tickFormat(a):fr:s,w=Math.max(u,0)+c,j=n.range(),O=j[0]+.5,C=j[j.length-1]+.5,E=(n.bandwidth?function(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return t(n)+e}}:fr)(n);if(r.facetAxis){var S=E;E=function(t){return S(t)-n.stepSize(t)/2}}var M,T=o.selection?o:null,k=T?T.selection():o,A=function(t){for(var e=t.node();e&&"svg"!==e.tagName;)e=e.parentNode;return e}(k).getBoundingClientRect();function D(t){var n=Wt(r.rotate);if(t.attr("transform",Ie(n)),Math.abs(n/90)%2>0){var i=n<180?1:-1,o=f?.5:-2,a=e===yr.top||e===yr.left?-1:1,s=o*(e===yr.top||e===yr.bottom?a<0?0:.71:.32);t.attr("x",9*i).attr("y",0).attr("dx",f?null:s+"em").attr("dy",s+"em")}}function I(t,e){void 0===e&&(e=0);var i=function(t){return Math.max(n.stepSize(t),r.tickFormatWordWrapLimit,e)};r.tickFormatWordWrap?nt(t,i,r.tickFormatWordWrapLines,r.tickFontHeight,!f):et(t,i)}function P(t){!function(t,e){var n=e?-10:20,r=e?0:1,i=e?1:-1,o=[];t.each(function(){var t=J.select(this),e=t.attr("transform").replace("translate(","").replace(" ",",").split(",")[r],n=i*parseFloat(e),a=t.select("text"),s=a.node().getBBox().width/2,u=n-s,c=n+s;o.push({c:n,s:u,e:c,l:0,textRef:a,tickRef:t})});var a,s=o.sort(function(t,e){return t.c-e.c});a=function(t,r,i){var o,a,s,u=t.e>r.s,c=i.s1&&(d=d.replace(/([\.]*$)/gi,"")+"...");var p=11*r.l,f=e?parseFloat(r.textRef.attr("y"))+p:0,h=e?0:p,m=e?p:0,g=function(t){var e=0;if(!t)return e;var n=t.indexOf("rotate(");if(n>=0){var r=t.indexOf(")",n+7),i=t.substring(n+7,r);e=parseFloat(i.trim())}return e}(r.textRef.attr("transform"));r.textRef.text(function(t,e){return 0===e?d:""}).attr("transform","translate("+h+","+m+") rotate("+g+")");var y={x1:0,x2:0,y1:f+(e?-1:5),y2:n};e||(y.transform="rotate(-90)"),Ee(r.tickRef,"line.label-ref").call(dt(y))}else r.tickRef.selectAll("line.label-ref").remove();return r},s.map(function(t,e,n){return a(n[e-1]||{e:-1/0,s:-1/0,l:0},t,n[e+1]||{e:1/0,s:1/0,l:0})})}(t,f)}k.attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===yr.right?"start":e===yr.left?"end":"middle"),l||(M=r.hideTicks||r.hide?[]:[null],de(k.selectAll(".domain").data(M)).then(function(t){return T&&t.exit().transition(T).attr("opacity",0).remove(),t.merge(t.enter().insert("path",".tick").attr("class","domain").attr("opacity",1).attr("stroke","#000"))}).then(function(t){return T?t.transition(T):t}).then(function(t){t.attr("d",e===yr.left||e==yr.right?"M"+h*u+","+O+"H0.5V"+C+"H"+h*u:"M"+O+","+h*u+"V0.5H"+C+"V"+h*u)}));var R,N,F=de(k.selectAll(".tick").data(v,function(t){return String(n(t))}).order()).then(function(t){var e=t.exit(),n=t.enter().append("g").attr("class","tick");return{tickExit:e,tickEnter:n,tick:t.merge(n)}}).then(function(t){if(d){var e=n.ticks(),r=n.domain(),i=v.length-1,o=e.length>1&&r[0]*r[1]<0&&-r[0]>(e[1]-e[0])/2&&r[1]>(e[i]-e[i-1])/2;t.tick.classed("zero-tick",function(t){return 0==t&&o})}return t}).result();de(F).then(function(t){var e=t.tickEnter,n=t.tickExit,r=t.tick;return T?(e.attr("opacity",hr).attr("transform",function(t){var e=E(t);return y(e)}),{tick:r.transition(T),tickExit:n.transition(T).attr("opacity",hr).attr("transform",function(t){var e=E(t);return isFinite(e)?y(e):this.getAttribute("transform")})}):{tick:r,tickExit:n}}).then(function(t){var e=t.tick;t.tickExit.remove(),e.attr("opacity",1).attr("transform",function(t){return y(E(t))})}),r.facetAxis||(R=h*u,N=p?function(t){return _*n.stepSize(t)/2}:null,de(F).then(function(t){var e=t.tick,n=t.tickEnter,r=e.select("line"),i=n.append("line").attr("stroke","#000").attr(g+"2",R);return p&&i.attr(m+"1",N).attr(m+"2",N),r.merge(i)}).then(function(t){return T?t.transition(T):t}).then(function(t){t.attr(g+"2",R),p&&t.attr(m+"1",N).attr(m+"2",N)})),p&&l&&p&&v&&v.length&&de(k.selectAll(".extra-tick-line").data([null])).then(function(t){return t.merge(t.enter().insert("line",".tick").attr("class","extra-tick-line").attr("stroke","#000"))}).then(function(t){return T?t.transition(T):t}).then(function(t){t.attr(m+"1",O).attr(m+"2",O).attr(g+"1",0).attr(g+"2",h*u)}),l||(function(i){var o=r.textAnchor,a=h*w,s=e===yr.top?"0em":e===yr.bottom?"0.71em":"0.32em";function u(e){if(r.facetAxis)return e.attr("dx",18-t.position[0]).attr("dy",16)}de(i).then(function(t){var e=t.tick,n=t.tickEnter,r=e.select("text"),i=n.append("text").attr("fill","#000").attr(g,a).attr("dy",s);return D(i),u(i),r.merge(i)}).then(function(t){if(t.text(x).attr("text-anchor",o),!1===f&&!0===r.facetAxis){var e=Re(k.node().parentNode.getAttribute("transform"));I(t,A.width-Math.abs(e.x))}else I(t);return f&&"time"===n.scaleType&&function(t){if(!(v.length<2)){var e=0,n=-1,r=t.nodes();r.forEach(function(t,r){var i=t.textContent||"",o=i.length;o>e&&(e=o,n=r)});var i=E(v[1])-E(v[0]),o=!1;if(n>=0){var a=r[n].getBoundingClientRect();o=i-a.width<8}k.classed(Xe+"time-axis-overflow",o)}}(t),!f||"time"!==n.scaleType&&"linear"!==n.scaleType||function(t){if(0!==v.length){var e=v[0],n=v[v.length-1],r=k.append("line").attr("x1",E(e)).attr("x2",E(e)).attr("y1",0).attr("y2",1),i=k.append("line").attr("x1",E(n)).attr("x2",E(n)).attr("y1",0).attr("y2",1),o={left:r.node().getBoundingClientRect().left-A.left,right:A.right-i.node().getBoundingClientRect().right};r.remove(),i.remove();var a=function(t,e,n){var r=t.getBoundingClientRect(),i=e>0?"right":"left",a=(E(n),o[i]),s=Math.ceil(r.width/2-a+1);t.setAttribute("dx",String(s>0?-e*s:0))},s=t.filter(function(t){return t===e}).node(),u=t.filter(function(t){return t===n}).node();t.attr("dx",null),a(s,-1,e),a(u,1,n)}}(t),t}).then(function(t){return T?t.transition(T):t}).then(function(t){t.attr(g,a),D(t),u(t),p&&r.avoidCollisions&&!r.facetAxis&&(T?T.on("end.fixTickTextCollision",function(){return P(i.tick)}):P(i.tick))})}(F),i.hide||function(){var t=i,e=Ee(k,"text.label").attr("class",ke("label",t.cssClass)).attr("transform",Ie(t.rotate)).attr("text-anchor",t.textAnchor);de(e).then(function(t){return T?t.transition(T):t}).then(function(e){var n=_*t.padding,r=Math.abs(C-O),i=f?r:0;e.attr("x",i).attr("y",n).attr("text-anchor","end")});for(var n=t.text.split(" → "),r=n.length-1;r>0;r--)n.splice(r,0," → ");e.selectAll("tspan").data(n).enter().append("tspan").attr("class",function(t,e){return e%2?"label-token-delimiter label-token-delimiter-"+e:"label-token label-token-"+e}).text(function(t){return t}).exit().remove()}())}}function vr(t){return _r({scale:t.scale,scaleGuide:t.scaleGuide,ticksCount:t.ticksCount,tickSize:t.tickSize,gridOnly:!0,position:t.position})}var br,xr,wr,jr=(xr=function(t,e){return(xr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}xr(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Or=Ee,Cr=function(t){var e=t<=20?1:.75;return Math.max(2,Math.round(t*e))},Er=function(t){function e(e){var n=t.call(this,e)||this;n.config=e,n.config.guide=Jt(n.config.guide||{},{showGridLines:"xy",padding:{l:50,r:0,t:0,b:50}}),n.config.guide.x=n.config.guide.x||{},n.config.guide.x=Jt(n.config.guide.x,{cssClass:"x axis",textAnchor:"middle",padding:10,hide:!1,scaleOrient:"bottom",rotate:0,density:20,label:{},tickFormatWordWrapLimit:100}),"string"==typeof n.config.guide.x.label&&(n.config.guide.x.label={text:n.config.guide.x.label}),n.config.guide.x.label=Jt(n.config.guide.x.label,{text:"X",rotate:0,padding:40,textAnchor:"middle"}),n.config.guide.y=n.config.guide.y||{},n.config.guide.y=Jt(n.config.guide.y,{cssClass:"y axis",textAnchor:"start",padding:10,hide:!1,scaleOrient:"left",rotate:0,density:20,label:{},tickFormatWordWrapLimit:100}),"string"==typeof n.config.guide.y.label&&(n.config.guide.y.label={text:n.config.guide.y.label}),n.config.guide.y.label=Jt(n.config.guide.y.label,{text:"Y",rotate:-90,padding:20,textAnchor:"middle"});var r=n.config,i=r.guide;if("extract-axes"===i.autoLayout){var o=r.options.containerHeight-(r.options.top+r.options.height);i.x.hide=i.x.hide||Math.floor(o)>0,i.y.hide=i.y.hide||Math.floor(r.options.left)>0}var a=n.config.options,s=n.config.guide.padding;return n.L=a.left+s.l,n.T=a.top+s.t,n.W=a.width-(s.l+s.r),n.H=a.height-(s.t+s.b),n}return jr(e,t),e.prototype.defineGrammarModel=function(t){var e=this.W,n=this.H;return this.xScale=t("pos",this.config.x,[0,e]),this.yScale=t("pos",this.config.y,function(t){return["ordinal","period"].indexOf(t.type)>=0?[0,n]:[n,0]}),this.regScale("x",this.xScale).regScale("y",this.yScale),{scaleX:this.xScale,scaleY:this.yScale,xi:function(){return e/2},yi:function(){return n/2},sizeX:function(){return e},sizeY:function(){return n}}},e.prototype.getGrammarRules=function(){return[function(t){var e=t.scaleX,n=t.scaleY;return{xi:function(n){return n?e(n[e.dim]):t.xi(n)},yi:function(e){return e?n(e[n.dim]):t.yi(e)},sizeX:function(n){return n?e.stepSize(n[e.dim]):t.sizeX(n)},sizeY:function(e){return e?n.stepSize(e[n.dim]):t.sizeY(e)}}}]},e.prototype.createScreenModel=function(t){return t},e.prototype.allocateRect=function(t){var e=this,n=this.screenModel;return{slot:function(t){return e.config.options.container.selectAll(".uid_"+t)},left:n.xi(t)-n.sizeX(t)/2,top:n.yi(t)-n.sizeY(t)/2,width:n.sizeX(t),height:n.sizeY(t),containerWidth:this.W,containerHeight:this.H}},e.prototype.drawFrames=function(t){var e=Object.assign({},this.config),n=e.options,r=this.W,i=this.H;if(e.x=this.xScale,e.y=this.yScale,e.x.scaleObj=this.xScale,e.y.scaleObj=this.yScale,e.x.guide=e.guide.x,e.y.guide=e.guide.y,e.x.guide.label.size=r,e.y.guide.label.size=i,(n.container.attr("transform")?rt(n.container,this.config.guide.animationSpeed,"cartesianContainerTransform"):n.container).attr("transform",De(this.L,this.T)),e.x.guide.hide)this._removeDimAxis(n.container,e.x);else{var o="top"===e.x.guide.scaleOrient?[0,0-e.guide.x.padding]:[0,i+e.guide.x.padding];this._drawDimAxis(n.container,e.x,o,r)}if(e.y.guide.hide)this._removeDimAxis(n.container,e.y);else{var a="right"===e.y.guide.scaleOrient?[r+e.guide.y.padding,0]:[0-e.guide.y.padding,0];this._drawDimAxis(n.container,e.y,a,i)}var s=t.reduce(function(t,e){return t.concat((e.units||[]).map(function(t){return t.uid}))},[]),u=this._drawGrid(n.container,e,r,i,n),c=ct(u,".cell").data(s,function(t){return t});c.enter().append("g").attr("class",function(t){return Xe+"cell cell uid_"+t}).merge(c).classed("tau-active",!0),rt(c,this.config.guide.animationSpeed).attr("opacity",1),rt(c.exit().classed("tau-active",!1),this.config.guide.animationSpeed).attr("opacity",1e-6).remove()},e.prototype._drawDimAxis=function(t,e,n,r){var i=Cn.get(e.guide.tickFormat,e.guide.tickFormatNullAlias),a=_r({scale:e.scaleObj,scaleGuide:e.guide,ticksCount:i?Cr(r/e.guide.density):null,tickFormat:i||null,position:n}),s=this.config.guide.animationSpeed;Or(t,this._getAxisSelector(e)).classed("tau-active",!0).classed(e.guide.cssClass,!0).call(function(t){var e=rt(t,s,"axisTransition"),r=t.attr("transform");De.apply(o,n)!==r&&(r?e:t).attr("transform",De.apply(o,n)),e.call(a),e.attr("opacity",1)})},e.prototype._removeDimAxis=function(t,e){var n=ct(t,this._getAxisSelector(e)).classed("tau-active",!1);rt(n,this.config.guide.animationSpeed,"axisTransition").attr("opacity",1e-6).remove()},e.prototype._getAxisSelector=function(t){return"g."+("h"===Pe(t.guide.scaleOrient)?"x":"y")+".axis"},e.prototype._drawGrid=function(t,e,n,r){var i=this;return Or(t,"g.grid").attr("transform",De(0,0)).call(function(t){var o=t,a=i.config.guide.animationSpeed,s=(e.guide.showGridLines||"").toLowerCase();if(s.length>0){var u=Or(o,"g.grid-lines");if(s.indexOf("x")>-1){var c=e.x,l=Cn.get(c.guide.tickFormat),d=vr({scale:c.scaleObj,scaleGuide:c.guide,tickSize:r,ticksCount:l?Cr(n/c.guide.density):null}),p=Or(u,"g.grid-lines-x");rt(p,a).call(d)}if(s.indexOf("y")>-1){var f=e.y,h=(l=Cn.get(f.guide.tickFormat),vr({scale:f.scaleObj,scaleGuide:f.guide,tickSize:-n,ticksCount:l?Cr(r/f.guide.density):null})),m=Or(u,"g.grid-lines-y");rt(m,a).call(h)}}})},e}(y),Sr=n(11),Mr=n(8),Tr=(br=function(t,e){return(br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}br(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),kr=function(){return(kr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=n})}else{var o=n[t].map(r[t].invert);e=[o[0],o[1]]}return{dim:r[t].dim,func:r[t].discrete?"inset":"between",args:e}});e.fire("brush",s)}};return t.selectAll(".brush").remove(),t.append("g").attr("class","brush").each(function(t){var e=r[t].range();i[t]=Ar.brushY().extent([[0,e[0]],[16,e[1]]]).on("start",s).on("brush",c).on("end",u),Ar.select(this).classed("brush-"+Nt(t),!0).call(i[t]),o=!1,i[t].move(Ar.select(this),e),o=!0}).selectAll("rect").attr("transform","translate(-8,0)").attr("width",16),t},e.prototype._forceBrushing=function(t){void 0===t&&(t={});var e=this.columnsBrushes,n=this.columnsScalesMap;this.columnsSelections,Object.keys(t).filter(function(r){return e[r]&&n[r]&&t[r]}).forEach(function(r){var i=t[r],o=[];if(n[r].discrete){var a=i.map(n[r]).filter(function(t){return t>=0}),s=n[r].stepSize()/2;o=[Math.min.apply(Math,a)-s,Math.max.apply(Math,a)+s]}else o=[i[0],i[1]];var u=Nt(r);e[r](Ar.select(".brush-"+u)),e[r].move(Ar.select(".brush-"+u),o.map(n[r]))})},e}(y),Ir=n(12),Pr=n(4),Rr=function(){var t,e=[],n=[],r=1,i=1,o={},a=!1,s=function(t){var r=e.length,i=0,o=e[t].x-n[t].x,a=n[t].y-e[t].y,s=Math.sqrt(o*o+a*a);s>0&&(i+=.2*s),a/=s,i+=(o/=s)>0&&a>0?0:o<0&&a>0?3:o<0&&a<0?6:9;for(var u,c,d,p,f=e[t].x,h=e[t].y-e[t].height+2,m=e[t].x+e[t].width,g=e[t].y+2,y=0;yr&&(e[c].x=l),e[c].x<0&&(e[c].x=l),e[c].y>i&&(e[c].y=d),e[c].y<0&&(e[c].y=d);var p=(a?t(c,e,n):s(c))-u;Math.random()r&&(e[c].x=l),e[c].x<0&&(e[c].x=l),e[c].y>i&&(e[c].y=d),e[c].y<0&&(e[c].y=d);var y=(a?t(c,e,n):s(c))-u;Math.random()1||c<0||c>1)},d=function(t,e,n){return t-e/n};return o.start=function(t){for(var n=e.length,r=1,i=0;i=200&&r.status<300){var t=r.responseText;try{n(null,JSON.parse(t))}catch(t){n(t,null)}}else n(new Error(r.status+": "+r.statusText),null)},r.onerror=function(t){n(t.error,null)},r.open("GET",e,!0),r.send(null)):this._drawMap(t,o.sourcemap)},e.prototype._calcLabels=function(t,e,n){var r=this.W,i=this.H,o={};return e.forEach(function(e){var a=(Pr.feature(t,t.objects[e]).features||[]).map(function(t){var i=t.properties||{},o=n.centroid(t),a=n.bounds(t),s=o[0],u=o[1],c=a[1][0]-a[0][0],l=i.name||"",d=i.abbr||l,p=c<5.5*l.length?d:l,f=c<13.75,h=f?r-s-16.5:0;return{id:e+"-"+t.id,sx:s,sy:u,x:s+h,y:u,width:5.5*p.length,height:10,name:p,r:h,isRef:f}}).filter(function(t){return!Number.isNaN(t.x)&&!Number.isNaN(t.y)}),s=a.map(function(t){return{x:t.sx,y:t.sy,r:t.r}});Rr().label(a).anchor(s).width(r).height(i).start(10),a.filter(function(t){return!t.isRef}).map(function(t){return t.x=t.sx,t.y=t.sy,t}).reduce(function(t,e){return t[e.id]=e,t},o);var u=a.filter(function(t){return t.isRef});u.length<6&&u.reduce(function(t,e){return t[e.id]=e,t},o)}),o},e.prototype._drawMap=function(t,e){var n,r,i=this,o=this,s=this.config.guide,u=this.config.options,c=this.config.options.container,l=this.latScale,d=this.lonScale,p=this.sizeScale,f=this.colorScale,h=this.codeScale,m=this.fillScale,g=this.W,y=this.H,_=Br.filter(function(t){return(e.objects||{}).hasOwnProperty(t)});if(0===_.length)throw new Error("Invalid map: should contain some contours");if(m.dim){if(!h.georole)throw console.log("Specify [georole] for code scale"),new Error("[georole] is missing");if(-1===_.indexOf(h.georole))throw console.log('There is no contour for georole "'+h.georole+'"'),console.log("Available contours are: "+_.join(" | ")),new Error("Invalid [georole]");n=h.georole}else n=_[_.length-1];if(this.contourToFill=n,l.dim&&d.dim){var v=Lr.extent(l.domain()),b=Lr.extent(d.domain());r=[(b[1]+b[0])/2,(v[1]+v[0])/2]}var x=this._createProjection(e,_[0],r),w=Lr.geoPath().projection(x),j=c.selectAll(".map-container").data([""+g+y+r+_.join("-")],function(t){return t});j.exit().remove();var O=j.enter().append("g").call(function(t){var n=t;n.attr("class","map-container");var r={},i=_.reduceRight(function(t,e){return t.concat(e)},[]);if(s.showNames&&(r=o._calcLabels(e,i,w)),i.forEach(function(t,i){var o=function(e){return r[t+"-"+e.id]};n.selectAll(".map-contour-"+t).data(Pr.feature(e,e.objects[t]).features||[]).enter().append("g").call(function(e){var n=e;n.attr("class","map-contour-"+t+" map-contour-level map-contour-level-"+i).attr("fill","none"),n.append("title").text(function(t){return(t.properties||{}).name}),n.append("path").attr("d",w),n.append("text").attr("class","place-label-"+t).attr("transform",function(t){var e=o(t);return e?"translate("+[e.x,e.y]+")":""}).text(function(t){var e=o(t);return e?e.name:""}),n.append("line").attr("class","place-label-link-"+t).attr("stroke","gray").attr("stroke-width",.25).attr("x1",function(t){var e=o(t);return e&&e.isRef?e.sx:0}).attr("y1",function(t){var e=o(t);return e&&e.isRef?e.sy:0}).attr("x2",function(t){var e=o(t);return e&&e.isRef?e.x-.6*e.name.length*5.5:0}).attr("y2",function(t){var e=o(t);return e&&e.isRef?e.y-3.5:0})})}),e.objects.hasOwnProperty("places")){var a=Pr.feature(e,e.objects.places),u=a.features.map(function(t){var e=x(t.geometry.coordinates);return{x:e[0]+3.5,y:e[1]+3.5,width:5.5*t.properties.name.length,height:12,name:t.properties.name}}),c=a.features.map(function(t){var e=x(t.geometry.coordinates);return{x:e[0],y:e[1],r:2.5}});Rr().label(u).anchor(c).width(g).height(y).start(100),n.selectAll(".place").data(c).enter().append("circle").attr("class","place").attr("transform",function(t){return"translate("+t.x+","+t.y+")"}).attr("r",function(t){return t.r+"px"}),n.selectAll(".place-label").data(u).enter().append("text").attr("class","place-label").attr("transform",function(t){return"translate("+t.x+","+t.y+")"}).text(function(t){return t.name})}}).merge(j);this.groupByCode=t.reduce(function(t,e){return e.part().reduce(function(t,e){return t[(e[h.dim]||"").toLowerCase()]=e,t},t)},{});var C=this._resolveFeature.bind(this);if(O.selectAll(".map-contour-"+n).data(Pr.feature(e,e.objects[n]).features).call(function(t){t.classed("map-contour",!0).attr("fill",function(t){var e=C(t);return null===e?s.defaultFill:m(e[m.dim])})}).on("mouseover",function(t){return i.fire("area-mouseover",{data:C(t),event:a.event})}).on("mouseout",function(t){return i.fire("area-mouseout",{data:C(t),event:a.event})}).on("click",function(t){return i.fire("area-click",{data:C(t),event:a.event})}),!l.dim||!d.dim)return[];var E=function(t){return t.attr("r",function(t){return p(t[p.dim])}).attr("transform",function(t){var e=t.data;return"translate("+x([e[d.dim],e[l.dim]])+")"}).attr("class",function(t){var e=t.data;return f(e[f.dim])}).attr("opacity",.5).on("mouseover",function(t){var e=t.data;return o.fire("point-mouseover",{data:e,event:a.event})}).on("mouseout",function(t){var e=t.data;return o.fire("point-mouseout",{data:e,event:a.event})}).on("click",function(t){var e=t.data;return o.fire("point-click",{data:e,event:a.event})})},S=O.selectAll(".frame").data(t.map(function(t){return{tags:t.key||{},hash:t.hash(),data:t.part()}}),function(t){return t.hash});return S.exit().remove(),S.enter().append("g").merge(S).call(function(t){t.attr("class",function(t){return"frame frame-"+t.hash}).call(function(t){var e=t.selectAll("circle").data(function(t){return t.data.map(function(t){return{data:t,uid:u.uid}})});e.exit().remove(),e.call(E),e.enter().append("circle").call(E)})}),[]},e.prototype._resolveFeature=function(t){var e,n=this.groupByCode,r=t.properties,i=["c1","c2","c3","abbr","name"].filter(function(t){return r.hasOwnProperty(t)&&r[t]&&n.hasOwnProperty(r[t].toLowerCase())});if(0===i.length)e=null;else if(i.length>0){var o=r[i[0]].toLowerCase();e=n[o]}return e},e.prototype._highlightArea=function(t){var e=this,n=this.config.options.container,r=this.contourToFill;n.selectAll(".map-contour-"+r).classed("map-contour-highlighted",function(n){return t(e._resolveFeature(n))})},e.prototype._highlightPoint=function(t){this.config.options.container.selectAll("circle").classed("map-point-highlighted",function(e){var n=e.data;return t(n)}).attr("opacity",function(e){var n=e.data;return t(n)?.5:.1})},e.prototype._createProjection=function(t,e,n){var r=this.W,i=this.H,o=this.config.guide,a=100,s=[r/2,i/2],u=n||t.center,c=o.projection||t.projection||"mercator",l=this._createD3Projection(c,u,a,s),d=Lr.geoPath().projection(l).bounds(Pr.feature(t,t.objects[e])),p=a*r/(d[1][0]-d[0][0]),f=a*i/(d[1][1]-d[0][1]);return a=p=0},Kr=function(t,e){return!t.discrete&&e[t.dim]<0},Xr=function(t,e){return t.w(e)/2+Math.floor(t.model.size(e)/Gr(t,e))},Qr=function(t,e){return t.h(e)/2+Math.floor(t.model.size(e)/Gr(t,e))},Zr=function(t){return function(e){return{dx:function(n){var r=e.model.scaleY;if("+"===t[2]&&!Yr(r,n))return e.dx(n);if("-"===t[2]&&!Kr(r,n))return e.dx(n);var i=t[1],o=t[0]===t[0].toUpperCase()?1:0;return e.dx(n)+i*o*e.model.size(n)/2+i*Xr(e,n)}}}},$r=function(t){return function(e){return{dy:function(n){var r=e.model.scaleY;if("+"===t[2]&&!Yr(r,n))return e.dy(n);if("-"===t[2]&&!Kr(r,n))return e.dy(n);var i=t[1],o=t[0]===t[0].toUpperCase()?1:0;return e.dy(n)+i*o*e.model.size(n)/2+i*Qr(e,n)}}}};Wr.regRule("l",Zr(["l",-1,null])).regRule("L",Zr(["L",-1,null])).regRule("l+",Zr(["l",-1,"+"])).regRule("l-",Zr(["l",-1,"-"])).regRule("L+",Zr(["L",-1,"+"])).regRule("L-",Zr(["L",-1,"-"])).regRule("r",Zr(["r",1,null])).regRule("R",Zr(["R",1,null])).regRule("r+",Zr(["r",1,"+"])).regRule("r-",Zr(["r",1,"-"])).regRule("R+",Zr(["R",1,"+"])).regRule("R-",Zr(["R",1,"-"])).regRule("t",$r(["t",-1,null])).regRule("T",$r(["T",-1,null])).regRule("t+",$r(["t",-1,"+"])).regRule("t-",$r(["t",-1,"-"])).regRule("T+",$r(["T",-1,"+"])).regRule("T-",$r(["T",-1,"-"])).regRule("b",$r(["b",1,null])).regRule("B",$r(["B",1,null])).regRule("b+",$r(["b",1,"+"])).regRule("b-",$r(["b",1,"-"])).regRule("B+",$r(["B",1,"+"])).regRule("B-",$r(["B",1,"-"])).regRule("rotate-on-size-overflow",function(t,e){var n=e.data,r=e.lineBreakAvailable,i={};if(n.reduce(function(e,n){return e+(r=n,t.model.size(r).5){var o=r?-.5:.5;i={angle:function(){return-90},w:function(e){return t.h(e)},h:function(e){return t.w(e)},dx:function(e){return t.h(e)*o-2},dy:function(){return 0}}}return i}).regRule("hide-by-label-height-vertical",function(t){return{hide:function(e){var n,r;return 0===t.angle(e)?(r=t.h(e),n=Math.abs(t.model.y0(e)-t.model.yi(e))):(r=t.w(e),n=t.model.size(e)),r>n||t.hide(e)}}}).regRule("cut-label-vertical",function(t){return{h:function(e){var n=t.h(e);if(Math.abs(t.angle(e))>0){var r=Math.abs(t.model.y0(e)-t.model.yi(e));return r0){var i=t.model.y0(e)=0?1:-1)*e(t,n);var r,i};return t.model.flip?{dx:n}:{dy:n}}).regRule("inside-start-then-outside-end-horizontal",function(t,e){var n=[Wr.getRule("from-beginning"),Wr.getRule("towards"),Wr.getRule("cut-label-horizontal")].reduce(function(t,n){return Hr.compose(t,n(t,e))},t),r=[Wr.getRule("to-end"),Wr.getRule("towards"),Wr.getRule("cut-outer-label-horizontal")].reduce(function(t,n){return Hr.compose(t,n(t,e))},t);return Object.assign({},n,["x","dx","hide","label"].reduce(function(t,e){return t[e]=function(t){return(i=t,n.label(i).length>=r.label(i).length?n:r)[e](t);var i},t},{}))}).regRule("inside-start-then-outside-end-vertical",function(t,e){var n=[Wr.getRule("from-beginning"),Wr.getRule("towards"),Wr.getRule("cut-label-vertical")].reduce(function(t,n){return Hr.compose(t,n(t,e))},t),r=[Wr.getRule("to-end"),Wr.getRule("towards"),Wr.getRule("cut-outer-label-vertical")].reduce(function(t,n){return Hr.compose(t,n(t,e))},t);return Object.assign({},n,["y","dy","hide","label"].reduce(function(t,e){return t[e]=function(t){return(i=t,n.label(i).length>=r.label(i).length?n:r)[e](t);var i},t},{}))}).regRule("outside-then-inside-horizontal",function(t,e){var n=["r+","l-","cut-outer-label-horizontal"].map(Wr.getRule).reduce(function(t,n){return Hr.compose(t,n(t,e))},t),r=["r-","l+","hide-by-label-height-horizontal","cut-label-horizontal"].map(Wr.getRule).reduce(function(t,n){return Hr.compose(t,n(t,e))},t);return Object.assign({},n,["x","dx","hide","label"].reduce(function(t,e){return t[e]=function(t){return(i=t,r.label(i).length>n.label(i).length?r:n)[e](t);var i},t},{}))}).regRule("outside-then-inside-vertical",function(t,e){var n=["t+","b-","cut-outer-label-vertical"].map(Wr.getRule).reduce(function(t,n){return Hr.compose(t,n(t,e))},t),r=["t-","b+","hide-by-label-height-vertical","cut-label-vertical"].map(Wr.getRule).reduce(function(t,n){return Hr.compose(t,n(t,e))},t);return Object.assign({},n,["y","dy","hide","label"].reduce(function(t,i){return t[i]=function(t){return(o=t,a=n.y(o,e)+n.dy(o,e),a<=0||a>=e.maxHeight?r:n)[i](t,e);var o,a},t},{}))}).regRule("hide-by-label-height-horizontal",function(t){return{hide:function(e){return t.model.size(e)0)return r+a;var s=i+o/2-n;return s>0?r-s:r},dy:function(e){var n=t.dy(e),i=t.y(e)+n,o=t.h(e);if(0-(i-o/2)>0)return 0;var a=i+o/2-r;return a>0?n-a:n}}}).regRule("multiline-label-left-align",function(t){return{dy:function(e){var n=t.dy(e);return-90===t.angle(e)?n+t.h(e)/2:n}}}).regRule("multiline-label-vertical-center-align",function(t){return{dy:function(e){return t.dy(e)-t.h(e)/2}}}).regRule("multiline-hide-on-container-overflow",function(t,e){var n=e.maxWidth,r=e.maxHeight;return{hide:function(e){var i=t.angle(e),o=t.x(e)+t.dx(e),a=t.y(e)+t.dy(e);return!(!Gt(o,t.w(e),i,n)&&!Yt(a,t.h(e),i,r))||t.hide(e)}}});var Jr=function(){function t(t){this.minError=Number.MAX_VALUE,this.items=t.items,this.revision=this.items.map(function(t){return{i:t.i,x:t.x,y:t.y}}),this.penalties=t.penalties,this.transactor=t.transactor,this.cooling_schedule=t.cooling_schedule||function(t,e,n){return t-e/n}}return t.prototype.energy=function(t){return this.penalties.reduce(function(e,n){return e+n(t)},0)},t.prototype.move=function(t){var e=Math.floor(Math.random()*this.items.length),n=this.transactor(this.items[e]),r=this.energy(e);this.items[e]=n.modify();var i=this.energy(e),o=i-r,a=o<0?1:Math.exp(-o/t);Math.random()>=a?this.items[e]=n.revert():i0&&p.length>0?this.autoPosition(l,p):l;var f=d.reduce(function(t,e){var n;return Object.assign(t,((n={})[e]=!0,n))},{});l.text=l.text=f["auto:adjust-on-label-overflow"]?this.adjustOnOverflow(l.text,u):l.text,l.text=l.text=f["auto:adjust-on-multiline-label-overflow"]?this.adjustOnMultilineOverflow(l.text,u):l.text,l.text=f["auto:hide-on-label-edges-overlap"]?this.hideOnLabelEdgesOverlap(l.text,l.edges):l.text,l.text=f["auto:hide-on-label-label-overlap"]?this.hideOnLabelLabelOverlap(l.text):l.text,l.text=f["auto:hide-on-label-anchor-overlap"]?this.hideOnLabelAnchorOverlap(l.text):l.text;var h=l.text,m=function(t){return function(e,n){return h[n][t]}},g=m("x"),y=m("y"),_=m("angle"),v=m("color"),b=m("label"),x=function(t){t.style("fill",v).style("font-size",e.guide.fontSize+"px").style("display",function(t,e){return h[e].hide?"none":null}).attr("class","i-role-label").attr("text-anchor","middle").attr("transform",function(t,e){return"translate("+g(t,e)+","+y(t,e)+") rotate("+_(t,e)+")"}),i?t.each(function(t,e){var n=a.select(this),r=_(t,e);n.text(null),b(t,e).split(o).forEach(function(t,e){n.append("tspan").attr("text-anchor",0!==r?"start":"middle").attr("x",0).attr("y",0).attr("dy",1.2*(e+1)+"em").text(t)})}):t.text(b)};r.hideEqualLabels&&h.filter(function(t){return!t.hide}).filter(function(t,e,n){return e0&&(t.hide=!0)}),t},t.prototype.hideOnLabelLabelOverlap=function(t){var e=this,n={min:0,max:1,norm:2},r={"min/min":function(t,e){return e.y-t.y},"max/max":function(t,e){return t.y-e.y},"min/max":function(){return-1},"min/norm":function(){return-1},"max/norm":function(){return-1},"norm/norm":function(t,e){return t.y-e.y}};return t.filter(function(t){return!t.hide}).sort(function(t,e){return n[t.extr]-n[e.extr]}).forEach(function(i){t.forEach(function(t){i.i!==t.i&&function(t,i){var o=e.getLabelRect(t),a=e.getLabelRect(i),s=Number(!t.hide&&!i.hide);if(s*Math.max(0,Math.min(a.x1,o.x1)-Math.max(o.x0,a.x0))*(s*Math.max(0,Math.min(a.y1,o.y1)-Math.max(o.y0,a.y0)))>0){var u=[t,i];u.sort(function(t,e){return n[t.extr]-n[e.extr]}),(r[u[0].extr+"/"+u[1].extr](u[0],u[1])<0?u[0]:u[1]).hide=!0}}(i,t)})}),t},t.prototype.getLabelRect=function(t,e){return void 0===e&&(e=0),{x0:t.x-t.w/2-e,x1:t.x+t.w/2+e,y0:t.y-t.h/2-e,y1:t.y+t.h/2+e}},t.prototype.getPointRect=function(t,e){return void 0===e&&(e=0),{x0:t.x-t.size/2-e,x1:t.x+t.size/2+e,y0:t.y-t.size/2-e,y1:t.y+t.size/2+e}},t.prototype.hideOnLabelAnchorOverlap=function(t){var e=this;return t.filter(function(t){return!t.hide}).forEach(function(n){for(var r=t.length,i=0;i.001)){n.hide=!0;break}}var a,s,u,c}),t},t.prototype.adjustOnOverflow=function(t,e){var n=e.maxWidth,r=e.maxHeight;return t.map(function(t){return t.hide||(t.x=Math.min(Math.max(t.x,t.w/2),n-t.w/2),t.y=Math.max(Math.min(t.y,r-t.h/2),t.h/2)),t})},t.prototype.adjustOnMultilineOverflow=function(t,e){var n=e.maxWidth;return t.map(function(t){return t.hide||0!==t.angle||(t.x=Math.min(Math.max(t.x,t.w/2),n-t.w/2)),t})},t}(),oi=n(13),ai=function(){return(ai=Object.assign||function(t){for(var e,n=1,r=arguments.length;nr.right+u||sr.bottom+u)return null;var c=(i.find(a,s)||[]).map(function(t){var e=Math.sqrt(Math.pow(a-t.x,2)+Math.pow(s-t.y,2));if(e>u)return null;var n=ee.size)+" 1",n.left[0].x+","+n.left[0].y,"Z"].join(" "):mi(t.size>e.size?t:e)}function yi(t,e,n,r){var i=function(t,e,n,r){var i=bi(t,r);if(0===i||i+t.size/2<=r.size/2||i+r.size/2<=t.size/2)return null;var o=function(i){var o=i?[r,n,e,t]:[t,e,n,r],a=wi.apply(void 0,[1/12*2].concat(o)),s=wi.apply(void 0,[.5].concat(a.slice(0,4))),u=s[3],c=s[6],l=Oi(o[0],u),d=Oi(u,c),p=[l.left[0],k(.5,l.left[1],d.left[0]),d.left[1]],f=[l.right[0],k(.5,l.right[1],d.right[0]),d.right[1]],h=ji.apply(void 0,p)[1],m=ji.apply(void 0,f)[1],g=k(4,l.left[0],h),y=k(4,l.right[0],m);return{left:i?[y,f[0]]:[p[0],g],right:i?[g,p[0]]:[f[0],y]}},a=o(!1),s=o(!0);return{left:a.left.concat(s.left),right:a.right.concat(s.right)}}(t,e,n,r);if(!i)return gi(t,r);var o=vi(_i(t,i.right[0]),_i(t,i.left[0])),a=vi(_i(r,i.right[1]),_i(r,i.left[1]));return["M"+i.left[0].x+","+i.left[0].y,"C"+i.left[1].x+","+i.left[1].y,i.left[2].x+","+i.left[2].y,i.left[3].x+","+i.left[3].y,"A"+r.size/2+","+r.size/2+" 0 "+Number(o>Math.PI)+" 1",i.right[3].x+","+i.right[3].y,"C"+i.right[2].x+","+i.right[2].y,i.right[1].x+","+i.right[1].y,i.right[0].x+","+i.right[0].y,"A"+t.size/2+","+t.size/2+" 0 "+Number(a>Math.PI)+" 1",i.left[0].x+","+i.left[0].y,"Z"].join(" ")}function _i(t,e){return Math.atan2(e.y-t.y,e.x-t.x)}function vi(t,e){return e1?[t]:[]},p);if(b.exit().remove(),b.call(s(n.animationSpeed,o.pathAttributesUpdateInit,o.pathAttributesUpdateDone,o.afterPathUpdate)),b.enter().append(o.pathElement).call(s(n.animationSpeed,o.pathAttributesEnterInit,o.pathAttributesEnterDone,o.afterPathUpdate)).merge(b).call(function(t){e.guide.animationSpeed>0&&!document.hidden?(t.attr(o.pathTween.attr,function(t){return o.pathTween.fn.call(this,t)(0)}),rt(t,e.guide.animationSpeed,"pathTransition").attrTween(o.pathTween.attr,o.pathTween.fn)):t.attr(o.pathTween.attr,function(t){return o.pathTween.fn.call(this,t)(1)})}),t.subscribe(l),"never"!==n.showAnchors){var x=(d=t,h=r,m=(f=o).anchorShape,g=d.config.guide,y=d.screenModel,_=Ci({},Ei[m].getInitialAttrs(d,f),{opacity:"hover"===g.showAnchors?0:1,fill:function(t){return y.color(t)},class:"i-data-anchor"}),(v=h.selectAll(".i-data-anchor").data(function(t){return t.filter(di)},y.id)).exit().remove(),v.call(ut(g.animationSpeed,null,_)),v.enter().append(Ei[f.anchorShape].element).call(ut(g.animationSpeed,{r:0},_)).merge(v));t.subscribe(x)}},c=i.toFibers(),l=c.map(function(t){return t.filter(di)}),d=r.container.selectAll(".frame"),p=function(){var t=d.empty()?[]:d.data(),e=new Map;d.each(function(t){e.set(t,Number(this.getAttribute("data-id")))});var n=t.reduce(function(t,e){return t.set(e,e.map(i.id)),t},new Map),r=new Map,o=Math.max.apply(Math,[0].concat(Array.from(e.values())));return function(t){if(r.has(t))return r.get(t);var a,s=t.map(function(t){return i.id(t)}),u=(Array.from(n.entries()).find(function(t){var e=t[1];return s.some(function(t){return e.some(function(e){return e===t})})})||[null])[0];return a=u?e.get(u):++o,r.set(t,a),a}}();this._getDataSetId=p;var f=d.data(c,p);f.exit().remove(),f.call(u),f.enter().append("g").attr("data-id",p).call(u),f.order(),this._boundsInfo=this._getBoundsInfo(r.container.selectAll(".i-data-anchor").nodes()),t.subscribe(new ii(i.model,e.flip,e.guide.label,r).draw(l))},_getBoundsInfo:function(t){if(0===t.length)return null;var e=this.node().screenModel,n=this.node().config.flip,r=t.map(function(t){var n=a.select(t).data()[0];return{node:t,data:n,x:e.x(n),y:e.y(n)}}).filter(function(t){return!isNaN(t.x)&&!isNaN(t.y)}),i=r.reduce(function(t,e){var n=e.x,r=e.y;return t.left=Math.min(n,t.left),t.right=Math.max(n,t.right),t.top=Math.min(r,t.top),t.bottom=Math.max(r,t.bottom),t},{left:Number.MAX_VALUE,right:Number.MIN_VALUE,top:Number.MAX_VALUE,bottom:Number.MIN_VALUE}),o=Xt(r.map(n?function(t){return t.y}:function(t){return t.x})).sort(function(t,e){return t-e}),s=o.reduce(function(t,e){return t[e]=[],t},{});r.forEach(function(t){var e=o.find(n?function(e){return t.y===e}:function(e){return t.x===e});s[e].push(t)});var u=function(t){if(1===t.length)return s[t[0]];var e=Math.ceil(t.length/2);return{middle:(t[e-1]+t[e])/2,lower:u(t.slice(0,e)),greater:u(t.slice(e))}};return{bounds:i,tree:u(o)}},getClosestElement:function(t,e){if(!this._boundsInfo)return null;var n=this._boundsInfo,r=n.bounds,i=n.tree,o=this.node().config.options.container,a=this.node().config.flip,s=Fe(o.node()),u=this.node().config.guide.maxHighlightDistance;if(tr.right+s.x+u||er.bottom+s.y+u)return null;var c=a?e-s.y:t-s.x,l=function t(e){return Array.isArray(e)?e:t(c>e.middle?e.greater:e.lower)}(i).map(function(n){var r=n.x+s.x,i=n.y+s.y,o=Math.abs(a?e-i:t-r),u=Math.abs(a?t-r:e-i);return{node:n.node,data:n.data,distance:o,secondaryDistance:u,x:r,y:i}});return Si(t,e,l)},highlight:function(t){var e,n,r=this.node().config.options.container,i="tau-chart__highlighted",o=r.selectAll(".i-role-path"),a=o.data().filter(function(e){return e.filter(di).some(t)}),s=a.length>0;o.call(pt(((e={})[i]=function(t){return s&&a.indexOf(t)>=0},e["tau-chart__dimmed"]=function(t){return s&&a.indexOf(t)<0},e)));var u=((n={})[i]=function(e){return!0===t(e)},n["tau-chart__dimmed"]=function(e){return!1===t(e)},n);r.selectAll(".i-role-dot").call(pt(u)),r.selectAll(".i-role-label").call(pt(u)),this._sortElements(t)},highlightDataPoints:function(t){var e,n,r,i,o,a,s=this.node(),u=(e=s,n=this.domElementModel,r=t,i=n.anchorShape,o=e.screenModel,a="hover"===e.config.guide.showAnchors,e.config.options.container.selectAll(".i-data-anchor").call(dt(Ei[i].getHighlightAttrs(e,n,r))).attr("opacity",a?function(t){return r(t)?1:0}:function(){return 1}).attr("fill",function(t){return o.color(t)}).attr("class",function(t){return ke("i-data-anchor",o.class(t))}).classed(Xe+"highlighted",r)),c=s.config.options.container,l=s.config.flip,d=u.filter(t),p=c.select(".cursor-line");if(d.empty())p.remove();else{p.empty()&&(p=c.append("line"));var f=s.screenModel.model,h=f.xi(d.data()[0]),m=f.xi(d.data()[0]),g=f.scaleY.domain(),y=f.scaleY(g[0]),_=f.scaleY(g[1]);p.attr("class","cursor-line").attr("x1",l?y:h).attr("y1",l?h:y).attr("x2",l?_:m).attr("y2",l?m:_)}this._sortElements(t)},_sortElements:function(t){var e=this.node().config.options.container,n=new Map,r=new Map,i=this._getDataSetId;e.selectAll(".i-role-path").each(function(e){n.set(this,i(e)),r.set(this,e.filter(di).some(t))});var o=ne(function(t,e){return r.get(t)-r.get(e)},function(t,e){return n.get(t)-n.get(e)}),a={line:0,g:1,text:2};Te(e.node(),function(t,e){return"g"===t.tagName&&"g"===e.tagName?o(t,e):a[t.tagName]-a[e.tagName]})}},ki=[1,2,3,4,5],Ai=ki.map(function(t){return Xe+"line-opacity-"+t}),Di=ki.map(function(t){return Xe+"line-width-"+t});function Ii(t){return Ai[t-1]||Ai[4]}function Pi(t,e){return t.length<2?"":String.prototype.concat.apply("",t.concat(e.slice().reverse()).map(function(t,e){return(0===e?"":" ")+t.x+","+t.y}))}function Ri(t,e){if(t.length<2)return"";var n=function(t){var e=t.map(function(t,e){return((e-1)%3==0?"C":"")+t.x+","+t.y+" "});return String.prototype.concat.apply("",e)};return"M"+n(t)+"L"+n(e.slice().reverse())+"Z"}var Ni=function(){return(Ni=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&(n=Fi.rgb(n).darker(1)),n}};e.pathAttributesEnterInit=o,e.pathAttributesUpdateDone=o;var a="polyline"===Q(n.interpolate);return e.pathElement=a?"polygon":"path",e.anchorShape="vertical-stick",e.pathTween={attr:a?"points":"d",fn:lt(0,a?Pi:Ri,[function(n){return{id:t.id(n),x:e.x(n),y:e.y(n)}},function(n){return{id:t.id(n),x:e.x0(n),y:e.y0(n)}}],t.id,n.interpolate)},e},_getBoundsInfo:function(t){if(0===t.length)return null;var e,n,r=this.node().screenModel,i=this.node().config.flip,o=t.map(function(t){var e=Fi.select(t).data()[0];return{node:t,data:e,x:r.x(e),y:r.y(e),y0:r.y0(e),group:r.group(e)}}),a=o.reduce(function(t,e){var n=e.x,r=e.y,i=e.y0;return t.left=Math.min(n,t.left),t.right=Math.max(n,t.right),t.top=Math.min(r,i,t.top),t.bottom=Math.max(r,i,t.bottom),t},{left:Number.MAX_VALUE,right:Number.MIN_VALUE,top:Number.MAX_VALUE,bottom:Number.MIN_VALUE}),s=Xt(o.map(i?function(t){return t.y}:function(t){return t.x})).sort(function(t,e){return t-e}),u=s.reduce(function(t,e){return t[e]=[],t},{});if(o.forEach(function(t){var e=s.find(i?function(e){return t.y===e}:function(e){return t.x===e});u[e].push(t)}),e=Object.keys(o.reduce(function(t,e){return t[e.group]=!0,t},{})),n=e.reduce(function(t,e,n){return t[e]=n,t},{}),s.forEach(function(t){var r=u[t];if(r.sort(function(t,e){return n[t.group]-n[e.group]}),r.lengthr.right+s.x+u||er.bottom+s.y+u)return null;var c=a?e-s.y:t-s.x,l=function t(e){if(e.isLeaf)return e;var n=e.left.end;return t(c1&&(d=1);var p,f=(p=l.items.start.reduce(function(t,e){return t[e.group]={start:e,end:null,y:null,y0:null},t},{}),l.items.end.forEach(function(t){void 0!==p[t.group]?p[t.group].end=t:delete p[t.group]}),Object.keys(p).forEach(function(t){var e=p[t];e.end?(e.y=e.start.y+d*(e.end.y-e.start.y),e.y0=e.start.y0+d*(e.end.y0-e.start.y0)):delete p[t]}),Object.keys(p).map(function(t){return p[t]}).map(function(t){return{y:t.y,y0:t.y0,el:d<.5?t.start:t.end}}).filter(function(t){return null!=t.el.data})),h=e-s.y,m=f.filter(function(t){return h>=t.y&&h<=t.y0}),g=(m.length>0?m:f).map(function(t){return t.el}).map(function(n){var r=n.x+s.x,i=n.y+s.y,o=Math.abs(a?e-i:t-r),u=Math.abs(a?t-r:e-i);return{node:n.node,data:n.data,distance:o,secondaryDistance:u,x:r,y:i}});return Si(t,e,g)}},Bi={draw:Ti.draw,getClosestElement:Ti.getClosestElement,highlight:Ti.highlight,highlightDataPoints:Ti.highlightDataPoints,addInteraction:Ti.addInteraction,_getBoundsInfo:Ti._getBoundsInfo,_sortElements:Ti._sortElements,init:function(t){var e=Ti.init(t);return e.transformRules=[e.flip&&E.get("flip")],e.adjustRules=[function(t,n){var r=t.scaleSize.isEmptyScale(),i=Jt(e.guide.size||{},{defMinSize:2,defMaxSize:r?6:40}),o=Object.assign({},n,{defMin:i.defMinSize,defMax:i.defMaxSize,minLimit:i.minSize,maxLimit:i.maxSize});return E.get("adjustStaticSizeScale")(t,o)}],e},buildModel:function(t){var e=Ti.baseModel(t),n=this.node().config.guide,r=Ii(t.model.scaleColor.domain().length),i=Xe+"area area i-role-path "+r+" "+n.cssClass+" ";e.groupAttributes={class:function(t){return i+" "+e.class(t[0])+" frame"}};var o,a,s={fill:function(t){return e.color(t[0])},stroke:function(t){return e.color(t[0])}};return e.pathAttributesEnterInit=s,e.pathAttributesUpdateDone=s,e.pathElement="polygon",e.anchorShape="circle",e.pathTween={attr:"points",fn:lt(0,(o=function(t){return t.x},a=function(t){return t.y},function(t){return t.map(function(t){return[o(t),a(t)].join(",")}).join(" ")}),[function(n){return{id:t.id(n),x:e.x(n),y:e.y(n)}}],t.id)},e}};function Vi(t){if(t.length<2)return"";for(var e="",n=0;n=160&&e<320?n=1:e>=320&&e<480?n=2:e>=480&&e<640?n=3:e>=640&&(n=4),Di[n]):"",u=Ii(t.model.scaleColor.domain().length),c=a?"line":"area",l=""+Xe+c+" "+c+" i-role-path "+s+" "+u+" "+i.cssClass+" ",d=a?{stroke:function(t){return f.color(t[0])},class:"i-role-datum"}:{fill:function(t){return f.color(t[0])}},p="cubic"===Q(i.interpolate)?a?zi:hi:a?Vi:fi,f=Ti.baseModel(t),h=a?function(e){return{id:t.id(e),x:f.x(e),y:f.y(e)}}:function(e){return{id:t.id(e),x:f.x(e),y:f.y(e),size:f.size(e)}};return f.groupAttributes={class:function(t){return l+" "+f.class(t[0])+" frame"}},f.pathElement="path",f.anchorShape="circle",f.pathAttributesEnterInit=d,f.pathAttributesUpdateDone=d,f.pathTween={attr:"d",fn:lt(0,p,[h],t.id,i.interpolate)},f}},Qi=function(t){return a.select(t).data()[0]},Zi={init:function(t){var e=Object.assign({},t);e.guide=e.guide||{},e.guide=Jt(e.guide,{animationSpeed:0,avoidScalesOverflow:!0,maxHighlightDistance:32,prettify:!0,sortByBarHeight:!0,enableColorToBarPosition:null!=e.guide.enableColorToBarPosition?e.guide.enableColorToBarPosition:!e.stack}),e.guide.size=Jt(e.guide.size||{},{enableDistributeEvenly:!0}),e.guide.label=Jt(e.guide.label||{},{position:e.flip?e.stack?["r-","l+","hide-by-label-height-horizontal","cut-label-horizontal"]:["outside-then-inside-horizontal","auto:hide-on-label-label-overlap"]:e.stack?["rotate-on-size-overflow","t-","b+","hide-by-label-height-vertical","cut-label-vertical","auto:hide-on-label-label-overlap"]:["rotate-on-size-overflow","outside-then-inside-vertical","auto:hide-on-label-label-overlap"]});var n=e.guide.avoidScalesOverflow,r=e.guide.enableColorToBarPosition,i=e.guide.size.enableDistributeEvenly;return e.transformRules=[e.flip&&E.get("flip"),e.guide.obsoleteVerticalStackOrder&&E.get("obsoleteVerticalStackOrder"),e.stack&&E.get("stack"),r&&E.get("positioningByColor")].filter(function(t){return t}),e.adjustRules=[i&&function(t,n){var r=Jt(e.guide.size||{},{defMinSize:e.guide.prettify?3:0,defMaxSize:e.guide.prettify?40:Number.MAX_VALUE}),i=Object.assign({},n,{defMin:r.defMinSize,defMax:r.defMaxSize,minLimit:r.minSize,maxLimit:r.maxSize});return E.get("size_distribute_evenly")(t,i)},n&&i&&function(t,e){var n=Object.assign({},e,{sizeDirection:"x"});return E.get("avoidScalesOverflow")(t,n)},e.stack&&E.get("adjustYScale")].filter(function(t){return t}),e},addInteraction:function(){var t=this,e=this.node();e.on("highlight",function(e,n){return t.highlight(n)}),e.on("data-hover",function(e,n){return t.highlight((r=n.data,function(t){return t===r||null}));var r})},draw:function(){var t,e,n=this.node(),r=n.config,i=r.options;i.container=i.slot(r.uid);var o=r.guide.prettify,s="i-role-element i-role-datum bar "+Xe+"bar",u=n.screenModel,c=this.buildModel(u,{prettify:o,minBarH:1,minBarW:1,baseCssClass:s}),l=ut,d=r.flip?"y":"x",p=r.flip?"x":"y",f=r.flip?"width":"height",h=r.flip?"height":"width",m=u.toFibers(),g=m.reduce(function(t,e){return t.concat(e)},[]),y=c.class,_=te(c,"class"),v=i.container.selectAll(".bar").data(g,u.id);v.exit().classed("tau-removing",!0).call(l(r.guide.animationSpeed,null,((t={})[d]=function(){var t=a.select(this);return t.attr(d)-0+(t.attr(h)-0)/2},t[p]=function(){return this.getAttribute("data-zero")},t[h]=0,t[f]=0,t),function(t){var e=a.select(t);e.classed("tau-removing")&&e.remove()})),v.call(l(r.guide.animationSpeed,null,_));var b=v.enter().append("rect").call(l(r.guide.animationSpeed,(e={},e[p]=u[p+"0"],e[f]=0,e),_)).merge(v).attr("class",y).attr("data-zero",u[p+"0"]);n.subscribe(new ii(u.model,u.model.flip,r.guide.label,i).draw(m));var x,w=(x=g.reduce(function(t,e,n){return t.set(e,n+1),t},new Map),function(t,e){return(x.get(Qi(t))||-1)-(x.get(Qi(e))||-1)});this._barsSorter=r.guide.sortByBarHeight?r.flip?function(t,e){var n=Qi(t),r=Qi(e),i=c.width(n),o=c.width(r);if(i===o){var a=c.y(n),s=c.y(r);return a===s?w(t,e):a-s}return o-i}:function(t,e){var n=Qi(t),r=Qi(e),i=c.height(n),o=c.height(r);if(i===o){var a=c.x(n),s=c.x(r);return a===s?w(t,e):a-s}return o-i}:w;var j={rect:0,text:1};this._typeSorter=function(t,e){return j[t.tagName]-j[e.tagName]},this._sortElements(this._typeSorter,this._barsSorter),n.subscribe(b),this._boundsInfo=this._getBoundsInfo(b.nodes())},buildModel:function(t,e){var n,r=e.prettify,i=e.minBarH,o=e.minBarW,a=e.baseCssClass,s=function(e){var n=t.size(e);return r&&(n=Math.max(o,n)),n},u=function(e){return e[t.model.scaleY.dim]};if(t.flip){var c=function(e){return Math.abs(t.x(e)-t.x0(e))};n={y:function(e){return t.y(e)-.5*s(e)},x:function(e){var n=Math.min(t.x0(e),t.x(e));if(r){var o=c(e),a=u(e),s=0;return 0===a&&(s=0),a>0&&(s=o),a<0&&(s=0-i),o0?n-i:n),n},width:function(t){return s(t)},height:function(t){var e=l(t);return r&&(e=0===u(t)?e:Math.max(i,e)),e}}}return Object.assign(n,{class:function(e){return a+" "+t.class(e)},fill:function(e){return t.color(e)}})},_sortElements:function(){for(var t=[],e=0;es}}),i=r.reduce(function(t,e){var n=e.box;return t.left=Math.min(n.left,t.left),t.right=Math.max(n.right,t.right),t.top=Math.min(n.top,t.top),t.bottom=Math.max(n.bottom,t.bottom),t},{left:Number.MAX_VALUE,right:Number.MIN_VALUE,top:Number.MAX_VALUE,bottom:Number.MIN_VALUE}),o=Xt(r.map(n?function(t){return t.cy}:function(t){return t.cx})).sort(function(t,e){return t-e}),s=o.reduce(function(t,e){return t[e]=[],t},{});r.forEach(function(t){var e=o.find(n?function(e){return t.cy===e}:function(e){return t.cx===e});s[e].push(t)});var u=function(t){if(1===t.length)return s[t];var e=Math.ceil(t.length/2);return{middle:(t[e-1]+t[e])/2,lower:u(t.slice(0,e)),greater:u(t.slice(e))}};return{bounds:i,tree:u(o)}},getClosestElement:function(t,e){if(!this._boundsInfo)return null;var n=this._boundsInfo,r=n.bounds,i=n.tree,o=this.node().config.options.container,a=this.node().config.flip,s=Fe(o.node()),u=t-s.x,c=e-s.y,l=this.node().config.guide.maxHighlightDistance;if(ur.right+l||cr.bottom+l)return null;var d=a?c:u,p=a?u:c;return function t(e){return Array.isArray(e)?e:t(d>e.middle?e.greater:e.lower)}(i).map(function(t){var e,n=a?t.box.left:t.box.top,r=a?t.box.right:t.box.bottom,i=(e=p)>=n&&e<=r;if(!i&&Math.abs(p-n)>l&&Math.abs(p-r)>l)return null;var o=Math.abs(p-(t.invert!==a?r:n));return Object.assign(t,{distToValue:o,cursorInside:i})}).filter(function(t){return t}).sort(function(t,e){return t.cursorInside!==e.cursorInside?e.cursorInside-t.cursorInside:Math.abs(t.distToValue)-Math.abs(e.distToValue)}).map(function(t){var e=t.cx,n=t.cy,r=Math.abs(a?c-n:u-e),i=Math.abs(a?u-e:c-n);return{node:t.node,data:t.data,distance:r,secondaryDistance:i,x:e,y:n}})[0]||null},highlight:function(t){var e,n=this.node().config.options.container,r=((e={})["tau-chart__highlighted"]=function(e){return!0===t(e)},e["tau-chart__dimmed"]=function(e){return!1===t(e)},e);n.selectAll(".bar").call(pt(r)),n.selectAll(".i-role-label").call(pt(r)),this._sortElements(function(e,n){return t(Qi(e))-t(Qi(n))},this._typeSorter,this._barsSorter)}},$i=n(14),Ji=(Ki=function(t,e){return(Ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Ki(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),to=function(t){function e(e){var n=t.call(this,e)||this;return n.config=e,n.config.guide=Jt(n.config.guide||{},{}),n.on("highlight",function(t,e){return n.highlight(e)}),n}return Ji(e,t),e.prototype.defineGrammarModel=function(t){var e=this.config,n=e.options;this.color=t("color",e.color,{}),this.scalesMap=e.columns.reduce(function(e,r){return e[r]=t("pos",r,[0,n.height]),e},{});var r=n.width/(e.columns.length-1),i=e.columns.reduce(function(t,e,n){return t[e]=n*r,t},{});return this.xBase=function(t){return i[t]},this.regScale("columns",this.scalesMap).regScale("color",this.color),{}},e.prototype.drawFrames=function(t){var e=this.config,n=this.config.options,r=this.scalesMap,i=this.xBase,o=this.color,a=$i.line(),s=function(t){t.attr("d",function(t){return a(e.columns.map(function(e){return[i(e),r[e](t[r[e].dim])]}))})},u=function(t){t.attr("stroke",function(t){return o.toColor(o(t[o.dim]))}),t.attr("class",function(t){return Xe+"__line line "+o.toClass(o(t[o.dim]))+" foreground"})},c=function(t){var e=t.selectAll(".background").data(function(t){return t.part()});e.exit().remove(),e.call(s),e.enter().append("path").attr("class","background line").call(s);var n=t.selectAll(".foreground").data(function(t){return t.part()});n.exit().remove(),n.call(function(t){s(t),u(t)}),n.enter().append("path").call(function(t){s(t),u(t)})},l=n.container.selectAll(".lines-frame").data(t,function(t){return t.hash()});l.exit().remove(),l.call(c),l.enter().append("g").attr("class","lines-frame").call(c),this.subscribe(n.container.selectAll(".lines-frame .foreground"))},e.prototype.highlight=function(t){this.config.options.container.selectAll(".lines-frame .foreground").style("visibility",function(e){return t(e)?"":"hidden"})},e}(y),eo=function(){function t(t,e){var n,r=this;this._fields={},n=Array.isArray(e.fitToFrameByDims)&&e.fitToFrameByDims.length?t.part(function(t){var n={};return"where"===t.type&&t.args?(n.type=t.type,n.args=e.fitToFrameByDims.reduce(function(e,n){return t.args.hasOwnProperty(n)&&(e[n]=t.args[n]),e},{})):n=t,n}):t.full();var i=this.getVarSet(n,e);e.order&&(i=Zt($t(e.order,i),i)),this.vars=i;var o=i.map(function(t){return t});this.scaleConfig=e,this.scaleConfig.nice=this.scaleConfig.hasOwnProperty("nice")?this.scaleConfig.nice:this.scaleConfig.autoScale,this.addField("dim",this.scaleConfig.dim).addField("scaleDim",this.scaleConfig.dim).addField("scaleType",this.scaleConfig.type).addField("source",this.scaleConfig.source).addField("domain",function(){return r.vars}).addField("isInteger",o.every(Number.isInteger)).addField("originalSeries",function(){return o}).addField("isContains",function(t){return r.isInDomain(t)}).addField("isEmptyScale",function(){return r.isEmpty()}).addField("fixup",function(t){var e=r.scaleConfig;e.__fixup__=e.__fixup__||{},e.__fixup__=Object.assign(e.__fixup__,t(Object.assign({},e,e.__fixup__)))}).addField("commit",function(){r.scaleConfig=Object.assign(r.scaleConfig,r.scaleConfig.__fixup__),delete r.scaleConfig.__fixup__})}return t.prototype.isInDomain=function(t){return this.domain().indexOf(t)>=0},t.prototype.addField=function(t,e){return this._fields[t]=e,this[t]=e,this},t.prototype.getField=function(t){return this._fields[t]},t.prototype.isEmpty=function(){return!Boolean(this._fields.dim)},t.prototype.toBaseScale=function(t,e){var n=this;void 0===e&&(e=null);var r=Object.keys(this._fields).reduce(function(t,e){return t[e]=n._fields[e],t},t);return r.getHash=function(){return Nt([n.vars,e].map(function(t){return JSON.stringify}).join(""))},r.value=r,r},t.prototype.getVarSet=function(t,e){return Xt(e.hasOwnProperty("series")?e.series:t.map(function(t){return t[e.dim]}),"date"===e.dimType?function(t){return new Date(t).getTime()}:function(t){return t})},t}(),no=(Yi=function(t,e){return(Yi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Yi(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ro=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r._references=n.references,r._refCounter=n.refCounter,r.addField("scaleType","identity"),r}return no(e,t),e.prototype.create=function(){var t=this._references,e=this._refCounter;return this.toBaseScale(function(n,r){if(null==n){var i=t.get(r);null==i&&(i=e(),t.set(r,i))}else i=n;return i})},e}(eo),io=(Gi=function(t,e){return(Gi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Gi(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),oo=function(){return(oo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0){var f=Math.max.apply(Math,s.map(Math.abs));s=[-f,f]}r.vars=s}return r.addField("scaleType","color").addField("discrete",i).addField("brewer",o).addField("toColor",zt).addField("toClass",Ht),r}return io(e,t),e.prototype.create=function(){var t=this.discrete,e=this.vars,n=this.getField("brewer"),r=t?this.createDiscreteScale(e,n):this.createContinuesScale(e,n);return this.toBaseScale(r)},e.prototype.createDiscreteScale=function(t,e){var n,r,i,o,a,s=function(t,e){var n=t.map(function(t){return String(t).toString()});return ao.scaleOrdinal().range(e).domain(n)},u=function(t){return function(e){return t(String(e).toString())}};if(Array.isArray(e))n=u(s(t,e));else if("function"==typeof e)n=function(n){return e(n,u(s(t,qt(20).map(function(t){return"color20-"+(1+t)}))))};else{if(!At(e))throw new Error("This brewer is not supported");r=e,i=Object.keys(r),o=i.map(function(t){return r[t]}),a=ao.scaleOrdinal().range(o).domain(i),n=function(t){return r.hasOwnProperty(t)?a(String(t)):"color-default"}}return n},e.prototype.createContinuesScale=function(t,e){if(!Array.isArray(e))throw new Error("This brewer is not supported");return ao.scaleLinear().domain(Vt(t.map(function(t){return t-0}),e.length)).range(e)},e}(eo),uo=(qi=function(t,e){return(qi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}qi(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),co={sqrt:function(t){return Math.sqrt(t)},linear:function(t){return t}},lo=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=r.scaleConfig,o=s.extent(r.vars),a=Number.isFinite(i.min)?i.min:o[0],u=Number.isFinite(i.max)?i.max:o[1];return r.vars=[Math.min.apply(Math,[a,o[0]].filter(Number.isFinite)),Math.max.apply(Math,[u,o[1]].filter(Number.isFinite))],r.addField("scaleType","size"),r.addField("funcType",n.func||"sqrt"),r}return uo(e,t),e.prototype.isInDomain=function(t){var e=this.domain().sort(),n=e[0],r=e[e.length-1];return!Number.isNaN(n)&&!Number.isNaN(r)&&t<=r&&t>=n},e.prototype.create=function(){var t,e=this.scaleConfig,n=this.vars,r=Jt({},e,{func:"sqrt",minSize:0,maxSize:1}),i=r.func,o=r.minSize,a=r.maxSize,s=co[i],u=n.filter(function(t){return Number.isFinite(Number(t))});if(0===u.length)t=function(){return a};else{var c,l,d=Math.min.apply(Math,u),p=Math.max.apply(Math,u),f=s(Math.max(Math.abs(d),Math.abs(p),p-d));l=d<0?d:0,c=0===f?1:(a-o)/f,t=function(t){var e=null!==t?parseFloat(t):0;return Number.isFinite(e)?o+s(e-l)*c:a}}return this.toBaseScale(t)},e}(eo),po=(Wi=function(t,e){return(Wi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Wi(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),fo=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.addField("scaleType","ordinal").addField("discrete",!0),r}return po(e,t),e.prototype.create=function(t){var e=this.scaleConfig,n=this.vars,r=u.scalePoint().domain(n).range(t).padding(.5),i=Math.max.apply(Math,t),o=function(t){return"function"==typeof e.ratio?e.ratio(t,i,n):"object"==typeof e.ratio?e.ratio[t]:1/n.length},a=function(t){return e.ratio?i-n.slice(n.indexOf(t)+1).reduce(function(t,e){return t+i*o(e)},i*o(t)*.5):r(t)};return Object.keys(r).forEach(function(t){return a[t]=r[t]}),a.stepSize=function(t){return o(t)*i},this.toBaseScale(a,t)},e}(eo),ho=(Ui=function(t,e){return(Ui=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Ui(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),mo=function(){return(mo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0},e.prototype.create=function(t){var e=this.periodGenerator,n=this.vars,r=this.vars.map(function(t){return t.getTime()}),i=this.scaleConfig,o=go.scalePoint().domain(n).range(t).padding(.5),a=go.scalePoint().domain(r.map(String)).range(t).padding(.5),s=Math.max.apply(Math,t),u=function(t){var e=new Date(t).getTime();return"function"==typeof i.ratio?i.ratio(e,s,r):"object"==typeof i.ratio?i.ratio[e]:1/n.length},c=function(t){var n=new Date(t),o=(e?e.cast(n):n).getTime();return i.ratio?s-r.slice(r.indexOf(o)+1).reduce(function(t,e){return t+s*u(e)},s*u(t)*.5):a(String(o))};return Object.keys(o).forEach(function(t){return c[t]=o[t]}),c.stepSize=function(t){return u(t)*s},this.toBaseScale(c,t)},e}(eo),_o=n(15),vo=(Hi=function(t,e){return(Hi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Hi(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),bo=function(){return(bo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=r},e.prototype.create=function(t){var e=this,n=this.vars,r=this.scaleConfig.utcTime,i=this.periodGenerator,o=(r?xo.scaleUtc:xo.scaleTime)().domain(n).range(t),a=function(t){var e=n[0],r=n[1];return t>r&&(t=r),t=i&&t<=o}):function(t,e,n){void 0===n&&(n=10);var r,i,o=Number(t[0]),a=Number(t[1]),s=Math.abs(a-o)/n,u=xo.bisector(function(t){return t.duration}).right(Mo,s);if(u===Mo.length)r=e?xo.utcYear:xo.timeYear,i=xo.tickStep(o/So.year.duration,a/So.year.duration,n);else if(u){var c=s/Mo[u-1].duration,l=Mo[u].duration/s,d=Mo[cl&&(e=l),o(e)}}return Object.keys(o).forEach(function(t){return a[t]=o[t]}),a.stepSize=function(){return 0},this.toBaseScale(a,t)},e}(eo);function jo(t){return xo["time"+t[0].toUpperCase()+t.slice(1)]}var Oo,Co,Eo,So={second:{duration:1e3,interval:xo.timeSecond,utc:xo.utcSecond},minute:{duration:6e4,interval:xo.timeMinute,utc:xo.utcMinute},hour:{duration:36e5,interval:xo.timeHour,utc:xo.utcHour},day:{duration:864e5,interval:xo.timeDay,utc:xo.utcDay},week:{duration:6048e5,interval:xo.timeWeek,utc:xo.utcWeek},month:{duration:2592e6,interval:xo.timeMonth,utc:xo.utcMonth},year:{duration:31536e6,interval:xo.timeYear,utc:xo.utcYear}},Mo=[(Oo=function(t,e){return{time:t,step:e,duration:e*t.duration}})(So.second,1),Oo(So.second,5),Oo(So.second,15),Oo(So.second,30),Oo(So.minute,1),Oo(So.minute,5),Oo(So.minute,15),Oo(So.minute,30),Oo(So.hour,1),Oo(So.hour,3),Oo(So.hour,6),Oo(So.hour,12),Oo(So.day,1),Oo(So.day,2),Oo(So.week,1),Oo(So.month,1),Oo(So.month,3),Oo(So.year,1)],To=(Eo=function(t,e){return(Eo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Eo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ko=function(){return(ko=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=n},e.prototype.create=function(t){var e=this.vars,n=this.extendScale(Ao.scaleLinear());return n.domain(e).range(t).clamp(!0),this.toBaseScale(n,t)},e.prototype.extendScale=function(t){var e=this,n=t.copy,r=t.ticks;return Object.assign(t,{stepSize:function(){return 0},copy:function(){return e.extendScale(n.call(t))},ticks:this.getField("isInteger")?function(e){return r.call(t,e).filter(Number.isInteger)}:t.ticks}),t},e}(eo),Io=(Co=function(t,e){return(Co=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Co(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Po=function(){return(Po=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0,o=r.map(function(t){return Math.abs(t)}),a=Math.max.apply(Math,o),s=Math.min.apply(Math,o).toExponential().split("e"),u=a.toExponential().split("e"),c=parseFloat(Math.floor(Number(s[0]))+"e"+s[1]),l=parseFloat(Math.ceil(Number(u[0]))+"e"+u[1]),f=i?[c,l]:[-l,-c]),d.vars=f,d.addField("scaleType","logarithmic").addField("discrete",!1),d}return Io(e,t),e.prototype.isInDomain=function(t){var e=this.domain(),n=e[0],r=e[e.length-1];return!Number.isNaN(n)&&!Number.isNaN(r)&&t<=r&&t>=n},e.prototype.create=function(t){var e=this.vars;Lo(e);var n=function t(e){var n=e.copy;return e.ticks=function(t){for(var n=[],r=Ro.extent(e.domain()),i=Math.floor(Fo(r[0])),o=Math.ceil(Fo(r[1])),a=Math.ceil(10*(o-i)/(10*Math.ceil(t/10))),s=i;s<=o;s+=a)for(var u=1;u<=10;u++){var c=Math.pow(u,a)*Math.pow(10,s);(c=parseFloat(c.toExponential(0)))>=r[0]&&c<=r[1]&&n.push(c)}return n},e.copy=function(){var r=n.call(e);return t(r),r},e}(Ro.scaleLog()).domain(e).range(t);return n.stepSize=function(){return 0},this.toBaseScale(n,t)},e}(eo);function Fo(t){return Math.log(t)/Math.LN10}function Lo(t){if(t[0]*t[1]<=0)throw new j("Logarithmic scale domain cannot cross zero.",O.INVALID_LOG_DOMAIN)}var Bo,Vo,zo,Ho=(zo=function(t,e){return(zo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}zo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Uo=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.addField("scaleType","value").addField("georole",n.georole),r}return Ho(e,t),e.prototype.create=function(){return this.toBaseScale(function(t){return t})},e}(eo),Wo=(Vo=function(t,e){return(Vo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}Vo(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),qo=function(){return(qo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=n},e.prototype.create=function(){var t=this.vars,e=this.getField("brewer");if(!Array.isArray(e))throw new Error("This brewer is not supported");var n=e.length,r=(t[1]-t[0])/n,i=qt(n-1).map(function(t){return t+1}).reduce(function(e,n){return e.concat([t[0]+n*r])},[]),o=Go.scaleThreshold().domain(i).range(e);return this.toBaseScale(o)},e}(eo),Ko=function(t){return t||null},Xo=function(t,e){return void 0===e&&(e=null),Array.isArray(t)?0===t.length?[e]:t:[t]},Qo=function(t,e){return{type:t,x:e.x,y:e.y,identity:e.identity,size:e.size,color:e.color,split:e.split,label:e.label,guide:{color:e.colorGuide,obsoleteVerticalStackOrder:e.obsoleteVerticalStackOrder,size:e.sizeGuide},flip:e.flip,stack:e.stack}},Zo={SUCCESS:"SUCCESS",WARNING:"WARNING",FAIL:"FAIL"},$o=((Bo={})[Zo.SUCCESS]=function(t){return t},Bo[Zo.FAIL]=function(t,e){throw new Error((e.messages||[]).join("\n")||["This configuration is not supported,","See https://api.taucharts.com/basic/facet.html#easy-approach-for-creating-facet-chart"].join(" "))},Bo[Zo.WARNING]=function(t,e,n){var r=e.axis,i=e.indexMeasureAxis[0],o=t[i],a=t.filter(function(t){return t!==o});a.push(o);var s=n[i][r]||{},u=n[n.length-1][r]||{};return n[n.length-1][r]=s,n[i][r]=u,a},Bo);function Jo(t,e,n){return e.reduce(function(e,r,i){var o=t[r];return o?e.status!=Zo.FAIL&&("measure"===o.type&&(e.countMeasureAxis++,e.indexMeasureAxis.push(i)),"measure"!==o.type&&1===e.countMeasureAxis?e.status=Zo.WARNING:e.countMeasureAxis>1&&(e.status=Zo.FAIL,e.messages.push('There is more than one measure dimension for "'+n+'" axis'))):(e.status=Zo.FAIL,r?e.messages.push('"'+r+'" dimension is undefined for "'+n+'" axis'):e.messages.push('"'+n+'" axis should be specified')),e},{status:Zo.SUCCESS,countMeasureAxis:0,indexMeasureAxis:[],messages:[],axis:n})}function ta(t){for(var e=Xo(t.x),n=Xo(t.y),r=Math.max(e.length,n.length),i=Xo(t.guide||{},{}),o=r-i.length,a=0;a0;l--){var d=s.pop(),p=u.pop(),f=c.pop()||{};l===o?(a.x=d,a.y=p,a.unit.push(Qo(t,{x:Ko(d),y:Ko(p),identity:e.identity,split:e.split,color:e.color,label:e.label,size:e.size,flip:e.flip,stack:e.stack,colorGuide:f.color,obsoleteVerticalStackOrder:f.obsoleteVerticalStackOrder,sizeGuide:f.size})),a.guide=Jt(f,{x:{label:d},y:{label:p}})):a={type:"COORDS.RECT",x:Ko(d),y:Ko(p),unit:[a],guide:Jt(f,{x:{label:d},y:{label:p}})}}return e.spec={dimensions:e.dimensions,unit:a},e}var na=function(t){var e,n,r,i=ta(t);return n=((e=i).flip?e.y:e.x).indexOf(e.color)>=0,r=e.guide[e.guide.length-1],n&&!r.hasOwnProperty("enableColorToBarPosition")&&(r.enableColorToBarPosition=!1),ea("ELEMENT.INTERVAL",i=e)},ra=function(t){var e=ta(t),n=e.data,r=e.settings.log,i=(0,{horizontal:function(t){return{prop:t.x[t.x.length-1],flip:!1}},vertical:function(t){return{prop:t.y[t.y.length-1],flip:!0}},auto:function(t){var e,i=t.x,o=t.y,a=i[i.length-1],s=i.slice(0,i.length-1),u=o[o.length-1],c=o.slice(0,o.length-1),l=t.color,d=s.concat(c).concat([l]).filter(function(t){return null!==t}),p=-1,f=[[[a].concat(d),u],[[u].concat(d),a]],h=null;return f.some(function(t,e){var i=t[0],o=t[1],a=dn(n,i,[o]);return a.result?p=e:r(["Attempt to find a functional relation between",t[0]+" and "+t[1]+" is failed.","There are several "+a.error.keyY+" values (e.g. "+a.error.errY.join(",")+")","for ("+a.error.keyX+" = "+a.error.valX+")."].join(" ")),a.result})?(e=f[p][0][0],h=0!==p):(r("All attempts are failed. Gonna transform AREA to general PATH."),e=null),{prop:e,flip:h}}}["boolean"!=typeof e.flip?"auto":e.flip?"vertical":"horizontal"])(e);return null!==i.prop&&(e.data=pn(n,i.prop,e.dimensions[i.prop]),e.flip=i.flip),ea("ELEMENT.AREA",e)},ia=function(){function t(t){this.unitRef=t}return t.prototype.value=function(){return this.unitRef},t.prototype.clone=function(){return JSON.parse(JSON.stringify(this.unitRef))},t.prototype.traverse=function(t){var e=function(t,n,r){n(t,r),(t.units||[]).map(function(r){return e(r,n,t)})};return e(this.unitRef,t,null),this},t.prototype.reduce=function(t,e){var n=e;return this.traverse(function(e,r){return n=t(n,e,r)}),n},t.prototype.addFrame=function(t){return this.unitRef.frames=this.unitRef.frames||[],t.key.__layerid__=["L",(new Date).getTime(),this.unitRef.frames.length].join(""),t.source=t.hasOwnProperty("source")?t.source:this.unitRef.expression.source,t.pipe=t.pipe||[],this.unitRef.frames.push(t),this},t.prototype.addTransformation=function(t,e){return this.unitRef.transformation=this.unitRef.transformation||[],this.unitRef.transformation.push({type:t,args:e}),this},t.prototype.isCoordinates=function(){return 0===(this.unitRef.type||"").toUpperCase().indexOf("COORDS.")},t.prototype.isElementOf=function(t){if(this.isCoordinates())return!1;var e=(this.unitRef.type||"").split("/");return 1===e.length&&e.unshift("RECT"),e[0].toUpperCase()===t.toUpperCase()},t}(),oa=function(){function t(t){this.specRef=t}return t.prototype.value=function(){return this.specRef},t.prototype.unit=function(t){return t&&(this.specRef.unit=t),new ia(this.specRef.unit)},t.prototype.addTransformation=function(t,e){return this.specRef.transformations=this.specRef.transformations||{},this.specRef.transformations[t]=e,this},t.prototype.getSettings=function(t){return this.specRef.settings[t]},t.prototype.setSettings=function(t,e){return this.specRef.settings=this.specRef.settings||{},this.specRef.settings[t]=e,this},t.prototype.getScale=function(t){return this.specRef.scales[t]},t.prototype.addScale=function(t,e){return this.specRef.scales[t]=e,this},t.prototype.regSource=function(t,e){return this.specRef.sources[t]=e,this},t.prototype.getSourceData=function(t){return(this.specRef.sources[t]||{data:[]}).data},t.prototype.getSourceDim=function(t,e){return(this.specRef.sources[t]||{dims:{}}).dims[e]||{}},t}(),aa={},sa=function(){function t(){}return t.unit=function(t){return new ia(t)},t.spec=function(t){return new oa(t)},t.cloneObject=function(t){return JSON.parse(JSON.stringify(t))},t.depthFirstSearch=function(e,n){if(n(e))return e;for(var r=e.hasOwnProperty("frames")?e.frames:[{units:e.units}],i=0;i1))return"[columns] property must contain at least 2 dimensions"}]));var pa="2.7.1";e.default={GPL:Ke,Plot:ar,Chart:pr,api:la,version:"2.7.1"}},function(t,e){t.exports=i},function(t,e){t.exports=o},function(t,e){t.exports=a},function(t,e){t.exports=s},function(t,e){t.exports=u},function(t,e){t.exports=c},function(t,e){t.exports=l},function(t,e){t.exports=d},function(t,e,n){var r,i;void 0===(i="function"==typeof(r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e){return t.indexOf(e)},r=window,i=r.document,o=i.documentElement,a=["top","bottom"];function s(t,e){for(var n in e)t[n]=e[n];return t}function u(t){var e,n=r.pageYOffset||o.scrollTop,i=r.pageXOffset||o.scrollLeft,a={left:0,right:0,top:0,bottom:0,width:0,height:0};if((e=t)&&null!=e.setInterval)a.width=r.innerWidth||o.clientWidth,a.height=r.innerHeight||o.clientHeight;else{if(!o.contains(t)||null==t.getBoundingClientRect)return a;s(a,t.getBoundingClientRect()),a.width=a.right-a.left,a.height=a.bottom-a.top}return a.top=a.top+n-o.clientTop,a.left=a.left+i-o.clientLeft,a.right=a.left+a.width,a.bottom=a.top+a.height,a}var c=function(t,e){return r.getComputedStyle(t)[e]};function l(t){var e=String(c(t,l.propName)),n=e.match(/([0-9.]+)([ms]{1,2})/);return n&&(e=Number(n[1]),"s"===n[2]&&(e*=1e3)),0|e}l.propName=function(){for(var t=i.createElement("div"),e=["transitionDuration","webkitTransitionDuration"],n=0;n=e.bottom&&(i[0]="top"),i[1]){case"left":t.right-this.width<=e.left&&(i[1]="right");break;case"right":t.left+this.width>=e.right&&(i[1]="left");break;default:t.left+t.width/2+this.width/2>=e.right?i[1]="left":t.right-t.width/2-this.width/2<=e.left&&(i[1]="right")}else switch(t.left-this.width-o<=e.left?i[0]="right":t.right+this.width+o>=e.right&&(i[0]="left"),i[1]){case"top":t.bottom-this.height<=e.top&&(i[1]="bottom");break;case"bottom":t.top+this.height>=e.bottom&&(i[1]="top");break;default:t.top+t.height/2+this.height/2>=e.bottom?i[1]="top":t.bottom-t.height/2-this.height/2<=e.top&&(i[1]="bottom")}return i.join("-")},p.prototype.position=function(t,e){this.attachedTo&&(t=this.attachedTo),null==t&&this._p?(t=this._p[0],e=this._p[1]):this._p=arguments;var n,r,i="number"==typeof t?{left:0|t,right:0|t,top:0|e,bottom:0|e,width:0,height:0}:u(t),o=this.spacing,a=this._pickPlace(i);switch(a!==this.curPlace&&(this.curPlace&&this.classes.remove(this.curPlace),this.classes.add(a),this.curPlace=a),this.curPlace){case"top":n=i.top-this.height-o,r=i.left+i.width/2-this.width/2;break;case"top-left":n=i.top-this.height-o,r=i.right-this.width;break;case"top-right":n=i.top-this.height-o,r=i.left;break;case"bottom":n=i.bottom+o,r=i.left+i.width/2-this.width/2;break;case"bottom-left":n=i.bottom+o,r=i.right-this.width;break;case"bottom-right":n=i.bottom+o,r=i.left;break;case"left":n=i.top+i.height/2-this.height/2,r=i.left-this.width-o;break;case"left-top":n=i.bottom-this.height,r=i.left-this.width-o;break;case"left-bottom":n=i.top,r=i.left-this.width-o;break;case"right":n=i.top+i.height/2-this.height/2,r=i.right+o;break;case"right-top":n=i.bottom-this.height,r=i.right+o;break;case"right-bottom":n=i.top,r=i.right+o}return this.element.style.top=Math.round(n)+"px",this.element.style.left=Math.round(r)+"px",this},p.prototype.show=function(t,e){return t=this.attachedTo?this.attachedTo:t,clearTimeout(this.aIndex),null!=t&&this.position(t,e),this.hidden&&(this.hidden=0,i.body.appendChild(this.element)),this.attachedTo&&this._aware(),this.options.inClass&&(this.options.effectClass&&this.element.clientHeight,this.classes.add(this.options.inClass)),this},p.prototype.getElement=function(){return this.element},p.prototype.hide=function(){if(!this.hidden){var t=this,e=0;return this.options.inClass&&(this.classes.remove(this.options.inClass),this.options.effectClass&&(e=l(this.element))),this.attachedTo&&this._unaware(),clearTimeout(this.aIndex),this.aIndex=setTimeout(function(){t.aIndex=0,i.body.removeChild(t.element),t.hidden=1},e),this}},p.prototype.toggle=function(t,e){return this[this.hidden?"show":"hide"](t,e)},p.prototype.destroy=function(){clearTimeout(this.aIndex),this._unaware(),this.hidden||i.body.removeChild(this.element),this.element=this.options=null},p.prototype._aware=function(){-1===n(p.winAware,this)&&p.winAware.push(this)},p.prototype._unaware=function(){var t=n(p.winAware,this);-1!==t&&p.winAware.splice(t,1)},p.reposition=function(){var t,e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,17)};function n(){t=0;for(var e=0,n=p.winAware.length;e0)-(t<0)||Number(t)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o>>0,i=arguments[1],o=0;o0?1:-1)*Math.floor(Math.abs(e)):e);return Math.min(Math.max(n,0),a)},function(t){var e=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=arguments.length>1?arguments[1]:void 0;if(void 0!==r){if(!o(r))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}for(var i,a=s(e.length),u=o(this)?Object(new this(a)):new Array(a),c=0;c>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=d.exec(t))?b(parseInt(e[1],16)):(e=p.exec(t))?new O(e[1],e[2],e[3],1):(e=f.exec(t))?new O(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=h.exec(t))?x(e[1],e[2],e[3],e[4]):(e=m.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?E(e[1],e[2]/100,e[3]/100,1):(e=y.exec(t))?E(e[1],e[2]/100,e[3]/100,e[4]):_.hasOwnProperty(t)?b(_[t]):"transparent"===t?new O(NaN,NaN,NaN,0):null}function b(t){return new O(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new O(t,e,n,r)}function w(t){return t instanceof i||(t=v(t)),t?new O((t=t.rgb()).r,t.g,t.b,t.opacity):new O}function j(t,e,n,r){return 1===arguments.length?w(t):new O(t,e,n,null==r?1:r)}function O(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function C(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function E(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new T(t,e,n,r)}function S(t){if(t instanceof T)return new T(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=v(t)),!t)return new T;if(t instanceof T)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,u=a-o,c=(a+o)/2;return u?(s=e===a?(n-r)/u+6*(n0&&c<1?0:s,new T(s,u,c,t.opacity)}function M(t,e,n,r){return 1===arguments.length?S(t):new T(t,e,n,null==r?1:r)}function T(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function k(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.default)(i,v,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Object(r.default)(O,j,Object(r.extend)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new O(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new O(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+C(this.r)+C(this.g)+C(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Object(r.default)(T,M,Object(r.extend)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new T(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new T(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new O(k(t>=240?t-240:t+120,i,r),k(t,i,r),k(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},"./node_modules/taucharts/node_modules/d3-color/src/cubehelix.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return p}),n.d(e,"Cubehelix",function(){return f});var r=n("./node_modules/taucharts/node_modules/d3-color/src/define.js"),i=n("./node_modules/taucharts/node_modules/d3-color/src/color.js"),o=n("./node_modules/taucharts/node_modules/d3-color/src/math.js"),a=-.29227,s=-.90649,u=1.97294,c=u*s,l=1.78277*u,d=1.78277*a- -.14861*s;function p(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof f)return new f(t.h,t.s,t.l,t.opacity);t instanceof i.Rgb||(t=Object(i.rgbConvert)(t));var e=t.r/255,n=t.g/255,r=t.b/255,p=(d*r+c*e-l*n)/(d+c-l),h=r-p,m=(u*(n-p)-a*h)/s,g=Math.sqrt(m*m+h*h)/(u*p*(1-p)),y=g?Math.atan2(m,h)*o.rad2deg-120:NaN;return new f(y<0?y+360:y,g,p,t.opacity)}(t):new f(t,e,n,null==r?1:r)}function f(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Object(r.default)(f,p,Object(r.extend)(i.Color,{brighter:function(t){return t=null==t?i.brighter:Math.pow(i.brighter,t),new f(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i.darker:Math.pow(i.darker,t),new f(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*o.deg2rad,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),c=Math.sin(t);return new i.Rgb(255*(e+n*(-.14861*r+1.78277*c)),255*(e+n*(a*r+s*c)),255*(e+n*(u*r)),this.opacity)}}))},"./node_modules/taucharts/node_modules/d3-color/src/define.js":function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.r(e),n.d(e,"extend",function(){return r}),e.default=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},"./node_modules/taucharts/node_modules/d3-color/src/index.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-color/src/color.js");n.d(e,"color",function(){return r.default}),n.d(e,"rgb",function(){return r.rgb}),n.d(e,"hsl",function(){return r.hsl});var i=n("./node_modules/taucharts/node_modules/d3-color/src/lab.js");n.d(e,"lab",function(){return i.default}),n.d(e,"hcl",function(){return i.hcl}),n.d(e,"lch",function(){return i.lch}),n.d(e,"gray",function(){return i.gray});var o=n("./node_modules/taucharts/node_modules/d3-color/src/cubehelix.js");n.d(e,"cubehelix",function(){return o.default})},"./node_modules/taucharts/node_modules/d3-color/src/lab.js":function(t,e,n){"use strict";n.r(e),n.d(e,"gray",function(){return h}),n.d(e,"default",function(){return m}),n.d(e,"Lab",function(){return g}),n.d(e,"lch",function(){return w}),n.d(e,"hcl",function(){return j}),n.d(e,"Hcl",function(){return O});var r=n("./node_modules/taucharts/node_modules/d3-color/src/define.js"),i=n("./node_modules/taucharts/node_modules/d3-color/src/color.js"),o=n("./node_modules/taucharts/node_modules/d3-color/src/math.js"),a=.96422,s=1,u=.82521,c=4/29,l=6/29,d=3*l*l,p=l*l*l;function f(t){if(t instanceof g)return new g(t.l,t.a,t.b,t.opacity);if(t instanceof O){if(isNaN(t.h))return new g(t.l,0,0,t.opacity);var e=t.h*o.deg2rad;return new g(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof i.Rgb||(t=Object(i.rgbConvert)(t));var n,r,c=b(t.r),l=b(t.g),d=b(t.b),p=y((.2225045*c+.7168786*l+.0606169*d)/s);return c===l&&l===d?n=r=p:(n=y((.4360747*c+.3850649*l+.1430804*d)/a),r=y((.0139322*c+.0971045*l+.7141733*d)/u)),new g(116*p-16,500*(n-p),200*(p-r),t.opacity)}function h(t,e){return new g(t,0,0,null==e?1:e)}function m(t,e,n,r){return 1===arguments.length?f(t):new g(t,e,n,null==r?1:r)}function g(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function y(t){return t>p?Math.pow(t,1/3):t/d+c}function _(t){return t>l?t*t*t:d*(t-c)}function v(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function b(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function x(t){if(t instanceof O)return new O(t.h,t.c,t.l,t.opacity);if(t instanceof g||(t=f(t)),0===t.a&&0===t.b)return new O(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*o.rad2deg;return new O(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function w(t,e,n,r){return 1===arguments.length?x(t):new O(n,e,t,null==r?1:r)}function j(t,e,n,r){return 1===arguments.length?x(t):new O(t,e,n,null==r?1:r)}function O(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Object(r.default)(g,m,Object(r.extend)(i.Color,{brighter:function(t){return new g(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new g(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=a*_(e),t=s*_(t),n=u*_(n),new i.Rgb(v(3.1338561*e-1.6168667*t-.4906146*n),v(-.9787684*e+1.9161415*t+.033454*n),v(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Object(r.default)(O,j,Object(r.extend)(i.Color,{brighter:function(t){return new O(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new O(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return f(this).rgb()}}))},"./node_modules/taucharts/node_modules/d3-color/src/math.js":function(t,e,n){"use strict";n.r(e),n.d(e,"deg2rad",function(){return r}),n.d(e,"rad2deg",function(){return i});var r=Math.PI/180,i=180/Math.PI},"./node_modules/taucharts/node_modules/d3-format/src/defaultLocale.js":function(t,e,n){"use strict";n.r(e),n.d(e,"format",function(){return i}),n.d(e,"formatPrefix",function(){return o}),n.d(e,"default",function(){return s});var r,i,o,a=n("./node_modules/taucharts/node_modules/d3-format/src/locale.js");function s(t){return r=Object(a.default)(t),i=r.format,o=r.formatPrefix,r}s({decimal:".",thousands:",",grouping:[3],currency:["$",""]})},"./node_modules/taucharts/node_modules/d3-format/src/exponent.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-format/src/formatDecimal.js");e.default=function(t){return(t=Object(r.default)(Math.abs(t)))?t[1]:NaN}},"./node_modules/taucharts/node_modules/d3-format/src/formatDecimal.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}},"./node_modules/taucharts/node_modules/d3-format/src/formatGroup.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return function(n,r){for(var i=n.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)}}},"./node_modules/taucharts/node_modules/d3-format/src/formatNumerals.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}},"./node_modules/taucharts/node_modules/d3-format/src/formatPrefixAuto.js":function(t,e,n){"use strict";n.r(e),n.d(e,"prefixExponent",function(){return r});var r,i=n("./node_modules/taucharts/node_modules/d3-format/src/formatDecimal.js");e.default=function(t,e){var n=Object(i.default)(t,e);if(!n)return t+"";var o=n[0],a=n[1],s=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,u=o.length;return s===u?o:s>u?o+new Array(s-u+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+Object(i.default)(t,Math.max(0,e+s-1))[0]}},"./node_modules/taucharts/node_modules/d3-format/src/formatRounded.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-format/src/formatDecimal.js");e.default=function(t,e){var n=Object(r.default)(t,e);if(!n)return t+"";var i=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+i:i.length>o+1?i.slice(0,o+1)+"."+i.slice(o+1):i+new Array(o-i.length+2).join("0")}},"./node_modules/taucharts/node_modules/d3-format/src/formatSpecifier.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return i});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){return new o(t)}function o(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},"./node_modules/taucharts/node_modules/d3-format/src/formatTrim.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){t:for(var e,n=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+1):t}},"./node_modules/taucharts/node_modules/d3-format/src/formatTypes.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-format/src/formatPrefixAuto.js"),i=n("./node_modules/taucharts/node_modules/d3-format/src/formatRounded.js");e.default={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Object(i.default)(100*t,e)},r:i.default,s:r.default,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}}},"./node_modules/taucharts/node_modules/d3-format/src/identity.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){return t}},"./node_modules/taucharts/node_modules/d3-format/src/index.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-format/src/defaultLocale.js");n.d(e,"formatDefaultLocale",function(){return r.default}),n.d(e,"format",function(){return r.format}),n.d(e,"formatPrefix",function(){return r.formatPrefix});var i=n("./node_modules/taucharts/node_modules/d3-format/src/locale.js");n.d(e,"formatLocale",function(){return i.default});var o=n("./node_modules/taucharts/node_modules/d3-format/src/formatSpecifier.js");n.d(e,"formatSpecifier",function(){return o.default});var a=n("./node_modules/taucharts/node_modules/d3-format/src/precisionFixed.js");n.d(e,"precisionFixed",function(){return a.default});var s=n("./node_modules/taucharts/node_modules/d3-format/src/precisionPrefix.js");n.d(e,"precisionPrefix",function(){return s.default});var u=n("./node_modules/taucharts/node_modules/d3-format/src/precisionRound.js");n.d(e,"precisionRound",function(){return u.default})},"./node_modules/taucharts/node_modules/d3-format/src/locale.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-format/src/exponent.js"),i=n("./node_modules/taucharts/node_modules/d3-format/src/formatGroup.js"),o=n("./node_modules/taucharts/node_modules/d3-format/src/formatNumerals.js"),a=n("./node_modules/taucharts/node_modules/d3-format/src/formatSpecifier.js"),s=n("./node_modules/taucharts/node_modules/d3-format/src/formatTrim.js"),u=n("./node_modules/taucharts/node_modules/d3-format/src/formatTypes.js"),c=n("./node_modules/taucharts/node_modules/d3-format/src/formatPrefixAuto.js"),l=n("./node_modules/taucharts/node_modules/d3-format/src/identity.js"),d=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];e.default=function(t){var e=t.grouping&&t.thousands?Object(i.default)(t.grouping,t.thousands):l.default,n=t.currency,p=t.decimal,f=t.numerals?Object(o.default)(t.numerals):l.default,h=t.percent||"%";function m(t){var r=(t=Object(a.default)(t)).fill,i=t.align,o=t.sign,l=t.symbol,m=t.zero,g=t.width,y=t.comma,_=t.precision,v=t.trim,b=t.type;"n"===b?(y=!0,b="g"):u.default[b]||(null==_&&(_=12),v=!0,b="g"),(m||"0"===r&&"="===i)&&(m=!0,r="0",i="=");var x="$"===l?n[0]:"#"===l&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===l?n[1]:/[%p]/.test(b)?h:"",j=u.default[b],O=/[defgprs%]/.test(b);function C(t){var n,a,u,l=x,h=w;if("c"===b)h=j(t)+h,t="";else{var C=(t=+t)<0;if(t=j(Math.abs(t),_),v&&(t=Object(s.default)(t)),C&&0==+t&&(C=!1),l=(C?"("===o?o:"-":"-"===o||"("===o?"":o)+l,h=("s"===b?d[8+c.prefixExponent/3]:"")+h+(C&&"("===o?")":""),O)for(n=-1,a=t.length;++n(u=t.charCodeAt(n))||u>57){h=(46===u?p+t.slice(n+1):t.slice(n))+h,t=t.slice(0,n);break}}y&&!m&&(t=e(t,1/0));var E=l.length+t.length+h.length,S=E>1)+l+t+h+S.slice(E);break;default:t=S+l+t+h}return f(t)}return _=null==_?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),C.toString=function(){return t+""},C}return{format:m,formatPrefix:function(t,e){var n=m(((t=Object(a.default)(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(Object(r.default)(e)/3))),o=Math.pow(10,-i),s=d[8+i/3];return function(t){return n(o*t)+s}}}}},"./node_modules/taucharts/node_modules/d3-format/src/precisionFixed.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-format/src/exponent.js");e.default=function(t){return Math.max(0,-Object(r.default)(Math.abs(t)))}},"./node_modules/taucharts/node_modules/d3-format/src/precisionPrefix.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-format/src/exponent.js");e.default=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.default)(e)/3)))-Object(r.default)(Math.abs(t)))}},"./node_modules/taucharts/node_modules/d3-format/src/precisionRound.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-format/src/exponent.js");e.default=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Object(r.default)(e)-Object(r.default)(t))+1}},"./node_modules/taucharts/node_modules/d3-geo/src/adder.js":function(t,e,n){"use strict";function r(){this.reset()}n.r(e),e.default=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){o(i,t,this.t),o(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function o(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}},"./node_modules/taucharts/node_modules/d3-geo/src/area.js":function(t,e,n){"use strict";n.r(e),n.d(e,"areaRingSum",function(){return p}),n.d(e,"areaStream",function(){return h});var r,i,o,a,s,u=n("./node_modules/taucharts/node_modules/d3-geo/src/adder.js"),c=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),l=n("./node_modules/taucharts/node_modules/d3-geo/src/noop.js"),d=n("./node_modules/taucharts/node_modules/d3-geo/src/stream.js"),p=Object(u.default)(),f=Object(u.default)(),h={point:l.default,lineStart:l.default,lineEnd:l.default,polygonStart:function(){p.reset(),h.lineStart=m,h.lineEnd=g},polygonEnd:function(){var t=+p;f.add(t<0?c.tau+t:t),this.lineStart=this.lineEnd=this.point=l.default},sphere:function(){f.add(c.tau)}};function m(){h.point=y}function g(){_(r,i)}function y(t,e){h.point=_,r=t,i=e,t*=c.radians,e*=c.radians,o=t,a=Object(c.cos)(e=e/2+c.quarterPi),s=Object(c.sin)(e)}function _(t,e){t*=c.radians,e=(e*=c.radians)/2+c.quarterPi;var n=t-o,r=n>=0?1:-1,i=r*n,u=Object(c.cos)(e),l=Object(c.sin)(e),d=s*l,f=a*u+d*Object(c.cos)(i),h=d*r*Object(c.sin)(i);p.add(Object(c.atan2)(h,f)),o=t,a=u,s=l}e.default=function(t){return f.reset(),Object(d.default)(t,h),2*f}},"./node_modules/taucharts/node_modules/d3-geo/src/bounds.js":function(t,e,n){"use strict";n.r(e);var r,i,o,a,s,u,c,l,d,p,f=n("./node_modules/taucharts/node_modules/d3-geo/src/adder.js"),h=n("./node_modules/taucharts/node_modules/d3-geo/src/area.js"),m=n("./node_modules/taucharts/node_modules/d3-geo/src/cartesian.js"),g=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),y=n("./node_modules/taucharts/node_modules/d3-geo/src/stream.js"),_=Object(f.default)(),v={point:b,lineStart:w,lineEnd:j,polygonStart:function(){v.point=O,v.lineStart=C,v.lineEnd=E,_.reset(),h.areaStream.polygonStart()},polygonEnd:function(){h.areaStream.polygonEnd(),v.point=b,v.lineStart=w,v.lineEnd=j,h.areaRingSum<0?(r=-(o=180),i=-(a=90)):_>g.epsilon?a=90:_<-g.epsilon&&(i=-90),p[0]=r,p[1]=o}};function b(t,e){d.push(p=[r=t,o=t]),ea&&(a=e)}function x(t,e){var n=Object(m.cartesian)([t*g.radians,e*g.radians]);if(l){var u=Object(m.cartesianCross)(l,n),c=[u[1],-u[0],0],f=Object(m.cartesianCross)(c,u);Object(m.cartesianNormalizeInPlace)(f),f=Object(m.spherical)(f);var h,y=t-s,_=y>0?1:-1,v=f[0]*g.degrees*_,b=Object(g.abs)(y)>180;b^(_*sa&&(a=h):b^(_*s<(v=(v+360)%360-180)&&v<_*t)?(h=-f[1]*g.degrees)a&&(a=e)),b?tS(r,o)&&(o=t):S(t,o)>S(r,o)&&(r=t):o>=r?(to&&(o=t)):t>s?S(r,t)>S(r,o)&&(o=t):S(t,o)>S(r,o)&&(r=t)}else d.push(p=[r=t,o=t]);ea&&(a=e),l=n,s=t}function w(){v.point=x}function j(){p[0]=r,p[1]=o,v.point=b,l=null}function O(t,e){if(l){var n=t-s;_.add(Object(g.abs)(n)>180?n+(n>0?360:-360):n)}else u=t,c=e;h.areaStream.point(t,e),x(t,e)}function C(){h.areaStream.lineStart()}function E(){O(u,c),h.areaStream.lineEnd(),Object(g.abs)(_)>g.epsilon&&(r=-(o=180)),p[0]=r,p[1]=o,l=null}function S(t,e){return(e-=t)<0?e+360:e}function M(t,e){return t[0]-e[0]}function T(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eS(s[0],s[1])&&(s[1]=u[1]),S(u[0],s[1])>S(s[0],s[1])&&(s[0]=u[0])):c.push(s=u);for(l=-1/0,e=0,s=c[n=c.length-1];e<=n;s=u,++e)u=c[e],(f=S(s[1],u[0]))>l&&(l=f,r=u[0],o=s[1])}return d=p=null,r===1/0||i===1/0?[[NaN,NaN],[NaN,NaN]]:[[r,i],[o,a]]}},"./node_modules/taucharts/node_modules/d3-geo/src/cartesian.js":function(t,e,n){"use strict";n.r(e),n.d(e,"spherical",function(){return i}),n.d(e,"cartesian",function(){return o}),n.d(e,"cartesianDot",function(){return a}),n.d(e,"cartesianCross",function(){return s}),n.d(e,"cartesianAddInPlace",function(){return u}),n.d(e,"cartesianScale",function(){return c}),n.d(e,"cartesianNormalizeInPlace",function(){return l});var r=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js");function i(t){return[Object(r.atan2)(t[1],t[0]),Object(r.asin)(t[2])]}function o(t){var e=t[0],n=t[1],i=Object(r.cos)(n);return[i*Object(r.cos)(e),i*Object(r.sin)(e),Object(r.sin)(n)]}function a(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function s(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function u(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function c(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function l(t){var e=Object(r.sqrt)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}},"./node_modules/taucharts/node_modules/d3-geo/src/centroid.js":function(t,e,n){"use strict";n.r(e);var r,i,o,a,s,u,c,l,d,p,f,h,m,g,y,_,v=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),b=n("./node_modules/taucharts/node_modules/d3-geo/src/noop.js"),x=n("./node_modules/taucharts/node_modules/d3-geo/src/stream.js"),w={sphere:b.default,point:j,lineStart:C,lineEnd:M,polygonStart:function(){w.lineStart=T,w.lineEnd=k},polygonEnd:function(){w.lineStart=C,w.lineEnd=M}};function j(t,e){t*=v.radians,e*=v.radians;var n=Object(v.cos)(e);O(n*Object(v.cos)(t),n*Object(v.sin)(t),Object(v.sin)(e))}function O(t,e,n){o+=(t-o)/++r,a+=(e-a)/r,s+=(n-s)/r}function C(){w.point=E}function E(t,e){t*=v.radians,e*=v.radians;var n=Object(v.cos)(e);g=n*Object(v.cos)(t),y=n*Object(v.sin)(t),_=Object(v.sin)(e),w.point=S,O(g,y,_)}function S(t,e){t*=v.radians,e*=v.radians;var n=Object(v.cos)(e),r=n*Object(v.cos)(t),o=n*Object(v.sin)(t),a=Object(v.sin)(e),s=Object(v.atan2)(Object(v.sqrt)((s=y*a-_*o)*s+(s=_*r-g*a)*s+(s=g*o-y*r)*s),g*r+y*o+_*a);i+=s,u+=s*(g+(g=r)),c+=s*(y+(y=o)),l+=s*(_+(_=a)),O(g,y,_)}function M(){w.point=j}function T(){w.point=A}function k(){D(h,m),w.point=j}function A(t,e){h=t,m=e,t*=v.radians,e*=v.radians,w.point=D;var n=Object(v.cos)(e);g=n*Object(v.cos)(t),y=n*Object(v.sin)(t),_=Object(v.sin)(e),O(g,y,_)}function D(t,e){t*=v.radians,e*=v.radians;var n=Object(v.cos)(e),r=n*Object(v.cos)(t),o=n*Object(v.sin)(t),a=Object(v.sin)(e),s=y*a-_*o,h=_*r-g*a,m=g*o-y*r,b=Object(v.sqrt)(s*s+h*h+m*m),x=Object(v.asin)(b),w=b&&-x/b;d+=w*s,p+=w*h,f+=w*m,i+=x,u+=x*(g+(g=r)),c+=x*(y+(y=o)),l+=x*(_+(_=a)),O(g,y,_)}e.default=function(t){r=i=o=a=s=u=c=l=d=p=f=0,Object(x.default)(t,w);var e=d,n=p,h=f,m=e*e+n*n+h*h;return m0?as)&&(a+=i*o.tau));for(var p,f=a;i>0?f>s:f0?i.pi:-i.pi,g=Object(i.abs)(a-n);Object(i.abs)(g-i.pi)0?i.halfPi:-i.halfPi),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(m,r),t.point(a,r),e=0):o!==m&&g>=i.pi&&(Object(i.abs)(n-o)i.epsilon?Object(i.atan)((Object(i.sin)(c)*(f=Object(i.cos)(d))*Object(i.sin)(l)-Object(i.sin)(d)*(p=Object(i.cos)(c))*Object(i.sin)(u))/(p*f*h)):(c+d)/2,t.point(o,r),t.lineEnd(),t.lineStart(),t.point(m,r),e=0),t.point(n=a,r=s),o=m},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var o;if(null==t)o=n*i.halfPi,r.point(-i.pi,o),r.point(0,o),r.point(i.pi,o),r.point(i.pi,0),r.point(i.pi,-o),r.point(0,-o),r.point(-i.pi,-o),r.point(-i.pi,0),r.point(-i.pi,o);else if(Object(i.abs)(t[0]-e[0])>i.epsilon){var a=t[0]1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}},"./node_modules/taucharts/node_modules/d3-geo/src/clip/circle.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-geo/src/cartesian.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/circle.js"),o=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),a=n("./node_modules/taucharts/node_modules/d3-geo/src/pointEqual.js"),s=n("./node_modules/taucharts/node_modules/d3-geo/src/clip/index.js");e.default=function(t){var e=Object(o.cos)(t),n=6*o.radians,u=e>0,c=Object(o.abs)(e)>o.epsilon;function l(t,n){return Object(o.cos)(t)*Object(o.cos)(n)>e}function d(t,n,i){var a=Object(r.cartesian)(t),s=Object(r.cartesian)(n),u=[1,0,0],c=Object(r.cartesianCross)(a,s),l=Object(r.cartesianDot)(c,c),d=c[0],p=l-d*d;if(!p)return!i&&t;var f=e*l/p,h=-e*d/p,m=Object(r.cartesianCross)(u,c),g=Object(r.cartesianScale)(u,f),y=Object(r.cartesianScale)(c,h);Object(r.cartesianAddInPlace)(g,y);var _=m,v=Object(r.cartesianDot)(g,_),b=Object(r.cartesianDot)(_,_),x=v*v-b*(Object(r.cartesianDot)(g,g)-1);if(!(x<0)){var w=Object(o.sqrt)(x),j=Object(r.cartesianScale)(_,(-v-w)/b);if(Object(r.cartesianAddInPlace)(j,g),j=Object(r.spherical)(j),!i)return j;var O,C=t[0],E=n[0],S=t[1],M=n[1];E0^j[1]<(Object(o.abs)(j[0]-C)o.pi^(C<=j[0]&&j[0]<=E)){var D=Object(r.cartesianScale)(_,(-v+w)/b);return Object(r.cartesianAddInPlace)(D,g),[j,Object(r.spherical)(D)]}}}function p(e,n){var r=u?t:o.pi-t,i=0;return e<-r?i|=1:e>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}return Object(s.default)(l,function(t){var e,n,r,i,s;return{lineStart:function(){i=r=!1,s=1},point:function(f,h){var m,g=[f,h],y=l(f,h),_=u?y?0:p(f,h):y?p(f+(f<0?o.pi:-o.pi),h):0;if(!e&&(i=r=y)&&t.lineStart(),y!==r&&(!(m=d(e,g))||Object(a.default)(e,m)||Object(a.default)(g,m))&&(g[0]+=o.epsilon,g[1]+=o.epsilon,y=l(g[0],g[1])),y!==r)s=0,y?(t.lineStart(),m=d(g,e),t.point(m[0],m[1])):(m=d(e,g),t.point(m[0],m[1]),t.lineEnd()),e=m;else if(c&&e&&u^y){var v;_&n||!(v=d(g,e,!0))||(s=0,u?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!y||e&&Object(a.default)(e,g)||t.point(g[0],g[1]),e=g,r=y,n=_},lineEnd:function(){r&&t.lineEnd(),e=null},clean:function(){return s|(i&&r)<<1}}},function(e,r,o,a){Object(i.circleStream)(a,t,n,o,e,r)},u?[0,-t]:[-o.pi,t-o.pi])}},"./node_modules/taucharts/node_modules/d3-geo/src/clip/extent.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-geo/src/clip/rectangle.js");e.default=function(){var t,e,n,i=0,o=0,a=960,s=500;return n={stream:function(n){return t&&e===n?t:t=Object(r.default)(i,o,a,s)(e=n)},extent:function(r){return arguments.length?(i=+r[0][0],o=+r[0][1],a=+r[1][0],s=+r[1][1],t=e=null,n):[[i,o],[a,s]]}}}},"./node_modules/taucharts/node_modules/d3-geo/src/clip/index.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-geo/src/clip/buffer.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/clip/rejoin.js"),o=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),a=n("./node_modules/taucharts/node_modules/d3-geo/src/polygonContains.js"),s=n("./node_modules/d3-array/index.js");function u(t){return t.length>1}function c(t,e){return((t=t.x)[0]<0?t[1]-o.halfPi-o.epsilon:o.halfPi-t[1])-((e=e.x)[0]<0?e[1]-o.halfPi-o.epsilon:o.halfPi-e[1])}e.default=function(t,e,n,o){return function(l){var d,p,f,h=e(l),m=Object(r.default)(),g=e(m),y=!1,_={point:v,lineStart:x,lineEnd:w,polygonStart:function(){_.point=j,_.lineStart=O,_.lineEnd=C,p=[],d=[]},polygonEnd:function(){_.point=v,_.lineStart=x,_.lineEnd=w,p=Object(s.merge)(p);var t=Object(a.default)(d,o);p.length?(y||(l.polygonStart(),y=!0),Object(i.default)(p,c,t,n,l)):t&&(y||(l.polygonStart(),y=!0),l.lineStart(),n(null,null,1,l),l.lineEnd()),y&&(l.polygonEnd(),y=!1),p=d=null},sphere:function(){l.polygonStart(),l.lineStart(),n(null,null,1,l),l.lineEnd(),l.polygonEnd()}};function v(e,n){t(e,n)&&l.point(e,n)}function b(t,e){h.point(t,e)}function x(){_.point=b,h.lineStart()}function w(){_.point=v,h.lineEnd()}function j(t,e){f.push([t,e]),g.point(t,e)}function O(){g.lineStart(),f=[]}function C(){j(f[0][0],f[0][1]),g.lineEnd();var t,e,n,r,i=g.clean(),o=m.result(),a=o.length;if(f.pop(),d.push(f),f=null,a)if(1&i){if((e=(n=o[0]).length-1)>0){for(y||(l.polygonStart(),y=!0),l.lineStart(),t=0;t1&&2&i&&o.push(o.pop().concat(o.shift())),p.push(o.filter(u))}return _}}},"./node_modules/taucharts/node_modules/d3-geo/src/clip/line.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e,n,r,i,o){var a,s=t[0],u=t[1],c=0,l=1,d=e[0]-s,p=e[1]-u;if(a=n-s,d||!(a>0)){if(a/=d,d<0){if(a0){if(a>l)return;a>c&&(c=a)}if(a=i-s,d||!(a<0)){if(a/=d,d<0){if(a>l)return;a>c&&(c=a)}else if(d>0){if(a0)){if(a/=p,p<0){if(a0){if(a>l)return;a>c&&(c=a)}if(a=o-u,p||!(a<0)){if(a/=p,p<0){if(a>l)return;a>c&&(c=a)}else if(p>0){if(a0&&(t[0]=s+c*d,t[1]=u+c*p),l<1&&(e[0]=s+l*d,e[1]=u+l*p),!0}}}}}},"./node_modules/taucharts/node_modules/d3-geo/src/clip/rectangle.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return l});var r=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/clip/buffer.js"),o=n("./node_modules/taucharts/node_modules/d3-geo/src/clip/line.js"),a=n("./node_modules/taucharts/node_modules/d3-geo/src/clip/rejoin.js"),s=n("./node_modules/d3-array/index.js"),u=1e9,c=-u;function l(t,e,n,l){function d(r,i){return t<=r&&r<=n&&e<=i&&i<=l}function p(r,i,o,a){var s=0,u=0;if(null==r||(s=f(r,o))!==(u=f(i,o))||m(r,i)<0^o>0)do{a.point(0===s||3===s?t:n,s>1?l:e)}while((s=(s+o+4)%4)!==u);else a.point(i[0],i[1])}function f(i,o){return Object(r.abs)(i[0]-t)0?0:3:Object(r.abs)(i[0]-n)0?2:1:Object(r.abs)(i[1]-e)0?1:0:o>0?3:2}function h(t,e){return m(t.x,e.x)}function m(t,e){var n=f(t,1),r=f(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(r){var f,m,g,y,_,v,b,x,w,j,O,C=r,E=Object(i.default)(),S={point:M,lineStart:function(){S.point=T,m&&m.push(g=[]);j=!0,w=!1,b=x=NaN},lineEnd:function(){f&&(T(y,_),v&&w&&E.rejoin(),f.push(E.result()));S.point=M,w&&C.lineEnd()},polygonStart:function(){C=E,f=[],m=[],O=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,r=m.length;nl&&(d-i)*(l-o)>(p-o)*(t-i)&&++e:p<=l&&(d-i)*(l-o)<(p-o)*(t-i)&&--e;return e}(),n=O&&e,i=(f=Object(s.merge)(f)).length;(n||i)&&(r.polygonStart(),n&&(r.lineStart(),p(null,null,1,r),r.lineEnd()),i&&Object(a.default)(f,h,e,p,r),r.polygonEnd());C=r,f=m=g=null}};function M(t,e){d(t,e)&&C.point(t,e)}function T(r,i){var a=d(r,i);if(m&&g.push([r,i]),j)y=r,_=i,v=a,j=!1,a&&(C.lineStart(),C.point(r,i));else if(a&&w)C.point(r,i);else{var s=[b=Math.max(c,Math.min(u,b)),x=Math.max(c,Math.min(u,x))],p=[r=Math.max(c,Math.min(u,r)),i=Math.max(c,Math.min(u,i))];Object(o.default)(s,p,t,e,n,l)?(w||(C.lineStart(),C.point(s[0],s[1])),C.point(p[0],p[1]),a||C.lineEnd(),O=!1):a&&(C.lineStart(),C.point(r,i),O=!1)}b=r,x=i,w=a}return S}}},"./node_modules/taucharts/node_modules/d3-geo/src/clip/rejoin.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-geo/src/pointEqual.js");function i(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function o(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0;--u)s.point((f=p[u])[0],f[1]);else a(m.x,m.p.x,-1,s);m=m.p}p=(m=m.o).z,g=!g}while(!m.v);s.lineEnd()}}}},"./node_modules/taucharts/node_modules/d3-geo/src/compose.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n}},"./node_modules/taucharts/node_modules/d3-geo/src/constant.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){return function(){return t}}},"./node_modules/taucharts/node_modules/d3-geo/src/contains.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-geo/src/polygonContains.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/distance.js"),o=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),a={Feature:function(t,e){return u(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++ri.epsilon}).map(p)).concat(Object(r.range)(Object(i.ceil)(c/y)*y,u,y).filter(function(t){return Object(i.abs)(t%v)>i.epsilon}).map(f))}return x.lines=function(){return w().map(function(t){return{type:"LineString",coordinates:t}})},x.outline=function(){return{type:"Polygon",coordinates:[h(s).concat(m(l).slice(1),h(n).reverse().slice(1),m(d).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.extentMajor(t).extentMinor(t):x.extentMinor()},x.extentMajor=function(t){return arguments.length?(s=+t[0][0],n=+t[1][0],d=+t[0][1],l=+t[1][1],s>n&&(t=s,s=n,n=t),d>l&&(t=d,d=l,l=t),x.precision(b)):[[s,d],[n,l]]},x.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],c=+n[0][1],u=+n[1][1],e>t&&(n=e,e=t,t=n),c>u&&(n=c,c=u,u=n),x.precision(b)):[[e,c],[t,u]]},x.step=function(t){return arguments.length?x.stepMajor(t).stepMinor(t):x.stepMinor()},x.stepMajor=function(t){return arguments.length?(_=+t[0],v=+t[1],x):[_,v]},x.stepMinor=function(t){return arguments.length?(g=+t[0],y=+t[1],x):[g,y]},x.precision=function(r){return arguments.length?(b=+r,p=o(c,u,90),f=a(e,t,b),h=o(d,l,90),m=a(s,n,b),x):b},x.extentMajor([[-180,-90+i.epsilon],[180,90-i.epsilon]]).extentMinor([[-180,-80-i.epsilon],[180,80+i.epsilon]])}function u(){return s()()}},"./node_modules/taucharts/node_modules/d3-geo/src/identity.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){return t}},"./node_modules/taucharts/node_modules/d3-geo/src/index.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-geo/src/area.js");n.d(e,"geoArea",function(){return r.default});var i=n("./node_modules/taucharts/node_modules/d3-geo/src/bounds.js");n.d(e,"geoBounds",function(){return i.default});var o=n("./node_modules/taucharts/node_modules/d3-geo/src/centroid.js");n.d(e,"geoCentroid",function(){return o.default});var a=n("./node_modules/taucharts/node_modules/d3-geo/src/circle.js");n.d(e,"geoCircle",function(){return a.default});var s=n("./node_modules/taucharts/node_modules/d3-geo/src/clip/antimeridian.js");n.d(e,"geoClipAntimeridian",function(){return s.default});var u=n("./node_modules/taucharts/node_modules/d3-geo/src/clip/circle.js");n.d(e,"geoClipCircle",function(){return u.default});var c=n("./node_modules/taucharts/node_modules/d3-geo/src/clip/extent.js");n.d(e,"geoClipExtent",function(){return c.default});var l=n("./node_modules/taucharts/node_modules/d3-geo/src/clip/rectangle.js");n.d(e,"geoClipRectangle",function(){return l.default});var d=n("./node_modules/taucharts/node_modules/d3-geo/src/contains.js");n.d(e,"geoContains",function(){return d.default});var p=n("./node_modules/taucharts/node_modules/d3-geo/src/distance.js");n.d(e,"geoDistance",function(){return p.default});var f=n("./node_modules/taucharts/node_modules/d3-geo/src/graticule.js");n.d(e,"geoGraticule",function(){return f.default}),n.d(e,"geoGraticule10",function(){return f.graticule10});var h=n("./node_modules/taucharts/node_modules/d3-geo/src/interpolate.js");n.d(e,"geoInterpolate",function(){return h.default});var m=n("./node_modules/taucharts/node_modules/d3-geo/src/length.js");n.d(e,"geoLength",function(){return m.default});var g=n("./node_modules/taucharts/node_modules/d3-geo/src/path/index.js");n.d(e,"geoPath",function(){return g.default});var y=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/albers.js");n.d(e,"geoAlbers",function(){return y.default});var _=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/albersUsa.js");n.d(e,"geoAlbersUsa",function(){return _.default});var v=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/azimuthalEqualArea.js");n.d(e,"geoAzimuthalEqualArea",function(){return v.default}),n.d(e,"geoAzimuthalEqualAreaRaw",function(){return v.azimuthalEqualAreaRaw});var b=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/azimuthalEquidistant.js");n.d(e,"geoAzimuthalEquidistant",function(){return b.default}),n.d(e,"geoAzimuthalEquidistantRaw",function(){return b.azimuthalEquidistantRaw});var x=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/conicConformal.js");n.d(e,"geoConicConformal",function(){return x.default}),n.d(e,"geoConicConformalRaw",function(){return x.conicConformalRaw});var w=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/conicEqualArea.js");n.d(e,"geoConicEqualArea",function(){return w.default}),n.d(e,"geoConicEqualAreaRaw",function(){return w.conicEqualAreaRaw});var j=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/conicEquidistant.js");n.d(e,"geoConicEquidistant",function(){return j.default}),n.d(e,"geoConicEquidistantRaw",function(){return j.conicEquidistantRaw});var O=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/equalEarth.js");n.d(e,"geoEqualEarth",function(){return O.default}),n.d(e,"geoEqualEarthRaw",function(){return O.equalEarthRaw});var C=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/equirectangular.js");n.d(e,"geoEquirectangular",function(){return C.default}),n.d(e,"geoEquirectangularRaw",function(){return C.equirectangularRaw});var E=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/gnomonic.js");n.d(e,"geoGnomonic",function(){return E.default}),n.d(e,"geoGnomonicRaw",function(){return E.gnomonicRaw});var S=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/identity.js");n.d(e,"geoIdentity",function(){return S.default});var M=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/index.js");n.d(e,"geoProjection",function(){return M.default}),n.d(e,"geoProjectionMutator",function(){return M.projectionMutator});var T=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/mercator.js");n.d(e,"geoMercator",function(){return T.default}),n.d(e,"geoMercatorRaw",function(){return T.mercatorRaw});var k=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/naturalEarth1.js");n.d(e,"geoNaturalEarth1",function(){return k.default}),n.d(e,"geoNaturalEarth1Raw",function(){return k.naturalEarth1Raw});var A=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/orthographic.js");n.d(e,"geoOrthographic",function(){return A.default}),n.d(e,"geoOrthographicRaw",function(){return A.orthographicRaw});var D=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/stereographic.js");n.d(e,"geoStereographic",function(){return D.default}),n.d(e,"geoStereographicRaw",function(){return D.stereographicRaw});var I=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/transverseMercator.js");n.d(e,"geoTransverseMercator",function(){return I.default}),n.d(e,"geoTransverseMercatorRaw",function(){return I.transverseMercatorRaw});var P=n("./node_modules/taucharts/node_modules/d3-geo/src/rotation.js");n.d(e,"geoRotation",function(){return P.default});var R=n("./node_modules/taucharts/node_modules/d3-geo/src/stream.js");n.d(e,"geoStream",function(){return R.default});var N=n("./node_modules/taucharts/node_modules/d3-geo/src/transform.js");n.d(e,"geoTransform",function(){return N.default})},"./node_modules/taucharts/node_modules/d3-geo/src/interpolate.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js");e.default=function(t,e){var n=t[0]*r.radians,i=t[1]*r.radians,o=e[0]*r.radians,a=e[1]*r.radians,s=Object(r.cos)(i),u=Object(r.sin)(i),c=Object(r.cos)(a),l=Object(r.sin)(a),d=s*Object(r.cos)(n),p=s*Object(r.sin)(n),f=c*Object(r.cos)(o),h=c*Object(r.sin)(o),m=2*Object(r.asin)(Object(r.sqrt)(Object(r.haversin)(a-i)+s*c*Object(r.haversin)(o-n))),g=Object(r.sin)(m),y=m?function(t){var e=Object(r.sin)(t*=m)/g,n=Object(r.sin)(m-t)/g,i=n*d+e*f,o=n*p+e*h,a=n*u+e*l;return[Object(r.atan2)(o,i)*r.degrees,Object(r.atan2)(a,Object(r.sqrt)(i*i+o*o))*r.degrees]}:function(){return[n*r.degrees,i*r.degrees]};return y.distance=m,y}},"./node_modules/taucharts/node_modules/d3-geo/src/length.js":function(t,e,n){"use strict";n.r(e);var r,i,o,a=n("./node_modules/taucharts/node_modules/d3-geo/src/adder.js"),s=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),u=n("./node_modules/taucharts/node_modules/d3-geo/src/noop.js"),c=n("./node_modules/taucharts/node_modules/d3-geo/src/stream.js"),l=Object(a.default)(),d={sphere:u.default,point:u.default,lineStart:function(){d.point=f,d.lineEnd=p},lineEnd:u.default,polygonStart:u.default,polygonEnd:u.default};function p(){d.point=d.lineEnd=u.default}function f(t,e){t*=s.radians,e*=s.radians,r=t,i=Object(s.sin)(e),o=Object(s.cos)(e),d.point=h}function h(t,e){t*=s.radians,e*=s.radians;var n=Object(s.sin)(e),a=Object(s.cos)(e),u=Object(s.abs)(t-r),c=Object(s.cos)(u),d=a*Object(s.sin)(u),p=o*n-i*a*c,f=i*n+o*a*c;l.add(Object(s.atan2)(Object(s.sqrt)(d*d+p*p),f)),r=t,i=n,o=a}e.default=function(t){return l.reset(),Object(c.default)(t,d),+l}},"./node_modules/taucharts/node_modules/d3-geo/src/math.js":function(t,e,n){"use strict";n.r(e),n.d(e,"epsilon",function(){return r}),n.d(e,"epsilon2",function(){return i}),n.d(e,"pi",function(){return o}),n.d(e,"halfPi",function(){return a}),n.d(e,"quarterPi",function(){return s}),n.d(e,"tau",function(){return u}),n.d(e,"degrees",function(){return c}),n.d(e,"radians",function(){return l}),n.d(e,"abs",function(){return d}),n.d(e,"atan",function(){return p}),n.d(e,"atan2",function(){return f}),n.d(e,"cos",function(){return h}),n.d(e,"ceil",function(){return m}),n.d(e,"exp",function(){return g}),n.d(e,"floor",function(){return y}),n.d(e,"log",function(){return _}),n.d(e,"pow",function(){return v}),n.d(e,"sin",function(){return b}),n.d(e,"sign",function(){return x}),n.d(e,"sqrt",function(){return w}),n.d(e,"tan",function(){return j}),n.d(e,"acos",function(){return O}),n.d(e,"asin",function(){return C}),n.d(e,"haversin",function(){return E});var r=1e-6,i=1e-12,o=Math.PI,a=o/2,s=o/4,u=2*o,c=180/o,l=o/180,d=Math.abs,p=Math.atan,f=Math.atan2,h=Math.cos,m=Math.ceil,g=Math.exp,y=Math.floor,_=Math.log,v=Math.pow,b=Math.sin,x=Math.sign||function(t){return t>0?1:t<0?-1:0},w=Math.sqrt,j=Math.tan;function O(t){return t>1?0:t<-1?o:Math.acos(t)}function C(t){return t>1?a:t<-1?-a:Math.asin(t)}function E(t){return(t=b(t/2))*t}},"./node_modules/taucharts/node_modules/d3-geo/src/noop.js":function(t,e,n){"use strict";function r(){}n.r(e),n.d(e,"default",function(){return r})},"./node_modules/taucharts/node_modules/d3-geo/src/path/area.js":function(t,e,n){"use strict";n.r(e);var r,i,o,a,s=n("./node_modules/taucharts/node_modules/d3-geo/src/adder.js"),u=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),c=n("./node_modules/taucharts/node_modules/d3-geo/src/noop.js"),l=Object(s.default)(),d=Object(s.default)(),p={point:c.default,lineStart:c.default,lineEnd:c.default,polygonStart:function(){p.lineStart=f,p.lineEnd=g},polygonEnd:function(){p.lineStart=p.lineEnd=p.point=c.default,l.add(Object(u.abs)(d)),d.reset()},result:function(){var t=l/2;return l.reset(),t}};function f(){p.point=h}function h(t,e){p.point=m,r=o=t,i=a=e}function m(t,e){d.add(a*t-o*e),o=t,a=e}function g(){m(r,i)}e.default=p},"./node_modules/taucharts/node_modules/d3-geo/src/path/bounds.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-geo/src/noop.js"),i=1/0,o=i,a=-i,s=a,u={point:function(t,e){ta&&(a=t);es&&(s=e)},lineStart:r.default,lineEnd:r.default,polygonStart:r.default,polygonEnd:r.default,result:function(){var t=[[i,o],[a,s]];return a=s=-(o=i=1/0),t}};e.default=u},"./node_modules/taucharts/node_modules/d3-geo/src/path/centroid.js":function(t,e,n){"use strict";n.r(e);var r,i,o,a,s=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),u=0,c=0,l=0,d=0,p=0,f=0,h=0,m=0,g=0,y={point:_,lineStart:v,lineEnd:w,polygonStart:function(){y.lineStart=j,y.lineEnd=O},polygonEnd:function(){y.point=_,y.lineStart=v,y.lineEnd=w},result:function(){var t=g?[h/g,m/g]:f?[d/f,p/f]:l?[u/l,c/l]:[NaN,NaN];return u=c=l=d=p=f=h=m=g=0,t}};function _(t,e){u+=t,c+=e,++l}function v(){y.point=b}function b(t,e){y.point=x,_(o=t,a=e)}function x(t,e){var n=t-o,r=e-a,i=Object(s.sqrt)(n*n+r*r);d+=i*(o+t)/2,p+=i*(a+e)/2,f+=i,_(o=t,a=e)}function w(){y.point=_}function j(){y.point=C}function O(){E(r,i)}function C(t,e){y.point=E,_(r=o=t,i=a=e)}function E(t,e){var n=t-o,r=e-a,i=Object(s.sqrt)(n*n+r*r);d+=i*(o+t)/2,p+=i*(a+e)/2,f+=i,h+=(i=a*t-o*e)*(o+t),m+=i*(a+e),g+=3*i,_(o=t,a=e)}e.default=y},"./node_modules/taucharts/node_modules/d3-geo/src/path/context.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return o});var r=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/noop.js");function o(t){this._context=t}o.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,r.tau)}},result:i.default}},"./node_modules/taucharts/node_modules/d3-geo/src/path/index.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-geo/src/identity.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/stream.js"),o=n("./node_modules/taucharts/node_modules/d3-geo/src/path/area.js"),a=n("./node_modules/taucharts/node_modules/d3-geo/src/path/bounds.js"),s=n("./node_modules/taucharts/node_modules/d3-geo/src/path/centroid.js"),u=n("./node_modules/taucharts/node_modules/d3-geo/src/path/context.js"),c=n("./node_modules/taucharts/node_modules/d3-geo/src/path/measure.js"),l=n("./node_modules/taucharts/node_modules/d3-geo/src/path/string.js");e.default=function(t,e){var n,d,p=4.5;function f(t){return t&&("function"==typeof p&&d.pointRadius(+p.apply(this,arguments)),Object(i.default)(t,n(d))),d.result()}return f.area=function(t){return Object(i.default)(t,n(o.default)),o.default.result()},f.measure=function(t){return Object(i.default)(t,n(c.default)),c.default.result()},f.bounds=function(t){return Object(i.default)(t,n(a.default)),a.default.result()},f.centroid=function(t){return Object(i.default)(t,n(s.default)),s.default.result()},f.projection=function(e){return arguments.length?(n=null==e?(t=null,r.default):(t=e).stream,f):t},f.context=function(t){return arguments.length?(d=null==t?(e=null,new l.default):new u.default(e=t),"function"!=typeof p&&d.pointRadius(p),f):e},f.pointRadius=function(t){return arguments.length?(p="function"==typeof t?t:(d.pointRadius(+t),+t),f):p},f.projection(t).context(e)}},"./node_modules/taucharts/node_modules/d3-geo/src/path/measure.js":function(t,e,n){"use strict";n.r(e);var r,i,o,a,s,u=n("./node_modules/taucharts/node_modules/d3-geo/src/adder.js"),c=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),l=n("./node_modules/taucharts/node_modules/d3-geo/src/noop.js"),d=Object(u.default)(),p={point:l.default,lineStart:function(){p.point=f},lineEnd:function(){r&&h(i,o),p.point=l.default},polygonStart:function(){r=!0},polygonEnd:function(){r=null},result:function(){var t=+d;return d.reset(),t}};function f(t,e){p.point=h,i=a=t,o=s=e}function h(t,e){a-=t,s-=e,d.add(Object(c.sqrt)(a*a+s*s)),a=t,s=e}e.default=p},"./node_modules/taucharts/node_modules/d3-geo/src/path/string.js":function(t,e,n){"use strict";function r(){this._string=[]}function i(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}n.r(e),n.d(e,"default",function(){return r}),r.prototype={_radius:4.5,_circle:i(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=i(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}}},"./node_modules/taucharts/node_modules/d3-geo/src/pointEqual.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js");e.default=function(t,e){return Object(r.abs)(t[0]-e[0])=0?1:-1,M=S*E,T=M>o.pi,k=_*O;if(a.add(Object(o.atan2)(k*S*Object(o.sin)(M),v*C+k*Object(o.cos)(M))),c+=T?E+S*o.tau:E,T^g>=n^w>=n){var A=Object(i.cartesianCross)(Object(i.cartesian)(m),Object(i.cartesian)(x));Object(i.cartesianNormalizeInPlace)(A);var D=Object(i.cartesianCross)(u,A);Object(i.cartesianNormalizeInPlace)(D);var I=(T^E>=0?-1:1)*Object(o.asin)(D[2]);(r>I||r===I&&(A[0]||A[1]))&&(l+=T^E>=0?1:-1)}}return(c<-o.epsilon||c=.12&&i<.234&&r>=-.425&&r<-.214?d:i>=.166&&i<.234&&r>=-.214&&r<-.115?p:l).invert(t)},h.stream=function(n){return t&&e===n?t:(r=[l.stream(e=n),d.stream(n),p.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<-r.halfPi+r.epsilon&&(e=-r.halfPi+r.epsilon):e>r.halfPi-r.epsilon&&(e=r.halfPi-r.epsilon);var n=s/Object(r.pow)(a(e),i);return[n*Object(r.sin)(i*t),s-n*Object(r.cos)(i*t)]}return u.invert=function(t,e){var n=s-e,o=Object(r.sign)(i)*Object(r.sqrt)(t*t+n*n);return[Object(r.atan2)(t,Object(r.abs)(n))/i*Object(r.sign)(n),2*Object(r.atan)(Object(r.pow)(s/o,1/i))-r.halfPi]},u}e.default=function(){return Object(i.conicProjection)(s).scale(109.5).parallels([30,30])}},"./node_modules/taucharts/node_modules/d3-geo/src/projection/conicEqualArea.js":function(t,e,n){"use strict";n.r(e),n.d(e,"conicEqualAreaRaw",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/conic.js"),o=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/cylindricalEqualArea.js");function a(t,e){var n=Object(r.sin)(t),i=(n+Object(r.sin)(e))/2;if(Object(r.abs)(i)2?t[2]%360*u.radians:0,B()):[M*u.degrees,T*u.degrees,k*u.degrees]},F.angle=function(t){return arguments.length?(A=t%360*u.radians,B()):A*u.degrees},F.precision=function(t){return arguments.length?(_=Object(p.default)(v,N=t*t),V()):Object(u.sqrt)(N)},F.fitExtent=function(t,e){return Object(d.fitExtent)(F,t,e)},F.fitSize=function(t,e){return Object(d.fitSize)(F,t,e)},F.fitWidth=function(t,e){return Object(d.fitWidth)(F,t,e)},F.fitHeight=function(t,e){return Object(d.fitHeight)(F,t,e)},function(){return e=t.apply(this,arguments),F.invert=e.invert&&L,B()}}},"./node_modules/taucharts/node_modules/d3-geo/src/projection/mercator.js":function(t,e,n){"use strict";n.r(e),n.d(e,"mercatorRaw",function(){return a}),n.d(e,"mercatorProjection",function(){return s});var r=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/rotation.js"),o=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/index.js");function a(t,e){return[t,Object(r.log)(Object(r.tan)((r.halfPi+e)/2))]}function s(t){var e,n,s,u=Object(o.default)(t),c=u.center,l=u.scale,d=u.translate,p=u.clipExtent,f=null;function h(){var o=r.pi*l(),c=u(Object(i.default)(u.rotate()).invert([0,0]));return p(null==f?[[c[0]-o,c[1]-o],[c[0]+o,c[1]+o]]:t===a?[[Math.max(c[0]-o,f),e],[Math.min(c[0]+o,n),s]]:[[f,Math.max(c[1]-o,e)],[n,Math.min(c[1]+o,s)]])}return u.scale=function(t){return arguments.length?(l(t),h()):l()},u.translate=function(t){return arguments.length?(d(t),h()):d()},u.center=function(t){return arguments.length?(c(t),h()):c()},u.clipExtent=function(t){return arguments.length?(null==t?f=e=n=s=null:(f=+t[0][0],e=+t[0][1],n=+t[1][0],s=+t[1][1]),h()):null==f?null:[[f,e],[n,s]]},h()}a.invert=function(t,e){return[t,2*Object(r.atan)(Object(r.exp)(e))-r.halfPi]},e.default=function(){return s(a).scale(961/r.tau)}},"./node_modules/taucharts/node_modules/d3-geo/src/projection/naturalEarth1.js":function(t,e,n){"use strict";n.r(e),n.d(e,"naturalEarth1Raw",function(){return o});var r=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/index.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js");function o(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}o.invert=function(t,e){var n,r=e,o=25;do{var a=r*r,s=a*a;r-=n=(r*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(Object(i.abs)(n)>i.epsilon&&--o>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},e.default=function(){return Object(r.default)(o).scale(175.295)}},"./node_modules/taucharts/node_modules/d3-geo/src/projection/orthographic.js":function(t,e,n){"use strict";n.r(e),n.d(e,"orthographicRaw",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/azimuthal.js"),o=n("./node_modules/taucharts/node_modules/d3-geo/src/projection/index.js");function a(t,e){return[Object(r.cos)(e)*Object(r.sin)(t),Object(r.sin)(e)]}a.invert=Object(i.azimuthalInvert)(r.asin),e.default=function(){return Object(o.default)(a).scale(249.5).clipAngle(90+r.epsilon)}},"./node_modules/taucharts/node_modules/d3-geo/src/projection/resample.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-geo/src/cartesian.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js"),o=n("./node_modules/taucharts/node_modules/d3-geo/src/transform.js"),a=16,s=Object(i.cos)(30*i.radians);e.default=function(t,e){return+e?function(t,e){function n(r,o,a,u,c,l,d,p,f,h,m,g,y,_){var v=d-r,b=p-o,x=v*v+b*b;if(x>4*e&&y--){var w=u+h,j=c+m,O=l+g,C=Object(i.sqrt)(w*w+j*j+O*O),E=Object(i.asin)(O/=C),S=Object(i.abs)(Object(i.abs)(O)-1)e||Object(i.abs)((v*A+b*D)/x-.5)>.3||u*h+c*m+l*g2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}},"./node_modules/taucharts/node_modules/d3-geo/src/rotation.js":function(t,e,n){"use strict";n.r(e),n.d(e,"rotateRadians",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-geo/src/compose.js"),i=n("./node_modules/taucharts/node_modules/d3-geo/src/math.js");function o(t,e){return[Object(i.abs)(t)>i.pi?t+Math.round(-t/i.tau)*i.tau:t,e]}function a(t,e,n){return(t%=i.tau)?e||n?Object(r.default)(u(t),c(e,n)):u(t):e||n?c(e,n):o}function s(t){return function(e,n){return[(e+=t)>i.pi?e-i.tau:e<-i.pi?e+i.tau:e,n]}}function u(t){var e=s(t);return e.invert=s(-t),e}function c(t,e){var n=Object(i.cos)(t),r=Object(i.sin)(t),o=Object(i.cos)(e),a=Object(i.sin)(e);function s(t,e){var s=Object(i.cos)(e),u=Object(i.cos)(t)*s,c=Object(i.sin)(t)*s,l=Object(i.sin)(e),d=l*n+u*r;return[Object(i.atan2)(c*o-d*a,u*n-l*r),Object(i.asin)(d*o+c*a)]}return s.invert=function(t,e){var s=Object(i.cos)(e),u=Object(i.cos)(t)*s,c=Object(i.sin)(t)*s,l=Object(i.sin)(e),d=l*o-c*a;return[Object(i.atan2)(c*o+l*a,u*n+d*r),Object(i.asin)(d*n-u*r)]},s}o.invert=o,e.default=function(t){function e(e){return(e=t(e[0]*i.radians,e[1]*i.radians))[0]*=i.degrees,e[1]*=i.degrees,e}return t=a(t[0]*i.radians,t[1]*i.radians,t.length>2?t[2]*i.radians:0),e.invert=function(e){return(e=t.invert(e[0]*i.radians,e[1]*i.radians))[0]*=i.degrees,e[1]*=i.degrees,e},e}},"./node_modules/taucharts/node_modules/d3-geo/src/stream.js":function(t,e,n){"use strict";function r(t,e){t&&o.hasOwnProperty(t.type)&&o[t.type](t,e)}n.r(e);var i={Feature:function(t,e){r(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,o=n.length;++i=(o=(m+y)/2))?m=o:y=o,(l=n>=(a=(g+_)/2))?g=a:_=a,i=f,!(f=f[d=l<<1|c]))return i[d]=h,t;if(s=+t._x.call(null,f.data),u=+t._y.call(null,f.data),e===s&&n===u)return h.next=f,i?i[d]=h:t._root=h,t;do{i=i?i[d]=new Array(4):t._root=new Array(4),(c=e>=(o=(m+y)/2))?m=o:y=o,(l=n>=(a=(g+_)/2))?g=a:_=a}while((d=l<<1|c)==(p=(u>=a)<<1|s>=o));return i[p]=f,i[d]=h,t}function i(t){var e,n,i,o,a=t.length,s=new Array(a),u=new Array(a),c=1/0,l=1/0,d=-1/0,p=-1/0;for(n=0;nd&&(d=i),op&&(p=o));if(c>d||l>p)return this;for(this.cover(c,l).cover(d,p),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(a=c.y0)>h||(s=c.x1)=_)<<1|t>=y)&&(c=m[m.length-1],m[m.length-1]=m[m.length-1-l],m[m.length-1-l]=c)}else{var v=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),x=v*v+b*b;if(x=(s=(h+g)/2))?h=s:g=s,(l=a>=(u=(m+y)/2))?m=u:y=u,e=f,!(f=f[d=l<<1|c]))return this;if(!f.length)break;(e[d+1&3]||e[d+2&3]||e[d+3&3])&&(n=e,p=d)}for(;f.data!==t;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):e?(i?e[d]=i:delete e[d],(f=e[0]||e[1]||e[2]||e[3])&&f===(e[3]||e[2]||e[1]||e[0])&&!f.length&&(n?n[p]=f:this._root=f),this):(this._root=i,this)}},"./node_modules/taucharts/node_modules/d3-quadtree/src/root.js":function(t,e,n){"use strict";n.r(e),e.default=function(){return this._root}},"./node_modules/taucharts/node_modules/d3-quadtree/src/size.js":function(t,e,n){"use strict";n.r(e),e.default=function(){var t=0;return this.visit(function(e){if(!e.length)do{++t}while(e=e.next)}),t}},"./node_modules/taucharts/node_modules/d3-quadtree/src/visit.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-quadtree/src/quad.js");e.default=function(t){var e,n,i,o,a,s,u=[],c=this._root;for(c&&u.push(new r.default(c,this._x0,this._y0,this._x1,this._y1));e=u.pop();)if(!t(c=e.node,i=e.x0,o=e.y0,a=e.x1,s=e.y1)&&c.length){var l=(i+a)/2,d=(o+s)/2;(n=c[3])&&u.push(new r.default(n,l,d,a,s)),(n=c[2])&&u.push(new r.default(n,i,d,l,s)),(n=c[1])&&u.push(new r.default(n,l,o,a,d)),(n=c[0])&&u.push(new r.default(n,i,o,l,d))}return this}},"./node_modules/taucharts/node_modules/d3-quadtree/src/visitAfter.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-quadtree/src/quad.js");e.default=function(t){var e,n=[],i=[];for(this._root&&n.push(new r.default(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var o=e.node;if(o.length){var a,s=e.x0,u=e.y0,c=e.x1,l=e.y1,d=(s+c)/2,p=(u+l)/2;(a=o[0])&&n.push(new r.default(a,s,u,d,p)),(a=o[1])&&n.push(new r.default(a,d,u,c,p)),(a=o[2])&&n.push(new r.default(a,s,p,d,l)),(a=o[3])&&n.push(new r.default(a,d,p,c,l))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this}},"./node_modules/taucharts/node_modules/d3-quadtree/src/x.js":function(t,e,n){"use strict";function r(t){return t[0]}n.r(e),n.d(e,"defaultX",function(){return r}),e.default=function(t){return arguments.length?(this._x=t,this):this._x}},"./node_modules/taucharts/node_modules/d3-quadtree/src/y.js":function(t,e,n){"use strict";function r(t){return t[1]}n.r(e),n.d(e,"defaultY",function(){return r}),e.default=function(t){return arguments.length?(this._y=t,this):this._y}},"./node_modules/taucharts/node_modules/d3-scale/index.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-scale/src/band.js");n.d(e,"scaleBand",function(){return r.default}),n.d(e,"scalePoint",function(){return r.point});var i=n("./node_modules/taucharts/node_modules/d3-scale/src/identity.js");n.d(e,"scaleIdentity",function(){return i.default});var o=n("./node_modules/taucharts/node_modules/d3-scale/src/linear.js");n.d(e,"scaleLinear",function(){return o.default});var a=n("./node_modules/taucharts/node_modules/d3-scale/src/log.js");n.d(e,"scaleLog",function(){return a.default});var s=n("./node_modules/taucharts/node_modules/d3-scale/src/ordinal.js");n.d(e,"scaleOrdinal",function(){return s.default}),n.d(e,"scaleImplicit",function(){return s.implicit});var u=n("./node_modules/taucharts/node_modules/d3-scale/src/pow.js");n.d(e,"scalePow",function(){return u.default}),n.d(e,"scaleSqrt",function(){return u.sqrt});var c=n("./node_modules/taucharts/node_modules/d3-scale/src/quantile.js");n.d(e,"scaleQuantile",function(){return c.default});var l=n("./node_modules/taucharts/node_modules/d3-scale/src/quantize.js");n.d(e,"scaleQuantize",function(){return l.default});var d=n("./node_modules/taucharts/node_modules/d3-scale/src/threshold.js");n.d(e,"scaleThreshold",function(){return d.default});var p=n("./node_modules/taucharts/node_modules/d3-scale/src/time.js");n.d(e,"scaleTime",function(){return p.default});var f=n("./node_modules/taucharts/node_modules/d3-scale/src/utcTime.js");n.d(e,"scaleUtc",function(){return f.default});var h=n("./node_modules/taucharts/node_modules/d3-scale/src/category10.js");n.d(e,"schemeCategory10",function(){return h.default});var m=n("./node_modules/taucharts/node_modules/d3-scale/src/category20b.js");n.d(e,"schemeCategory20b",function(){return m.default});var g=n("./node_modules/taucharts/node_modules/d3-scale/src/category20c.js");n.d(e,"schemeCategory20c",function(){return g.default});var y=n("./node_modules/taucharts/node_modules/d3-scale/src/category20.js");n.d(e,"schemeCategory20",function(){return y.default});var _=n("./node_modules/taucharts/node_modules/d3-scale/src/cubehelix.js");n.d(e,"interpolateCubehelixDefault",function(){return _.default});var v=n("./node_modules/taucharts/node_modules/d3-scale/src/rainbow.js");n.d(e,"interpolateRainbow",function(){return v.default}),n.d(e,"interpolateWarm",function(){return v.warm}),n.d(e,"interpolateCool",function(){return v.cool});var b=n("./node_modules/taucharts/node_modules/d3-scale/src/viridis.js");n.d(e,"interpolateViridis",function(){return b.default}),n.d(e,"interpolateMagma",function(){return b.magma}),n.d(e,"interpolateInferno",function(){return b.inferno}),n.d(e,"interpolatePlasma",function(){return b.plasma});var x=n("./node_modules/taucharts/node_modules/d3-scale/src/sequential.js");n.d(e,"scaleSequential",function(){return x.default})},"./node_modules/taucharts/node_modules/d3-scale/src/array.js":function(t,e,n){"use strict";n.r(e),n.d(e,"map",function(){return i}),n.d(e,"slice",function(){return o});var r=Array.prototype,i=r.map,o=r.slice},"./node_modules/taucharts/node_modules/d3-scale/src/band.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return o}),n.d(e,"point",function(){return a});var r=n("./node_modules/d3-array/index.js"),i=n("./node_modules/taucharts/node_modules/d3-scale/src/ordinal.js");function o(){var t,e,n=Object(i.default)().unknown(void 0),a=n.domain,s=n.range,u=[0,1],c=!1,l=0,d=0,p=.5;function f(){var n=a().length,i=u[1]2?d:l,r=a=null,y}function y(e){return(r||(r=n(p,f,m?(i=t,function(t,e){var n=i(t=+t,e=+e);return function(r){return r<=t?0:r>=e?1:n(r)}}):t,h)))(+e);var i}return y.invert=function(t){return(a||(a=n(f,p,c,m?(r=e,function(t,e){var n=r(t=+t,e=+e);return function(r){return r<=0?t:r>=1?e:n(r)}}):e)))(+t);var r},y.domain=function(t){return arguments.length?(p=o.map.call(t,s.default),g()):p.slice()},y.range=function(t){return arguments.length?(f=o.slice.call(t),g()):f.slice()},y.rangeRound=function(t){return f=o.slice.call(t),h=i.interpolateRound,g()},y.clamp=function(t){return arguments.length?(m=!!t,g()):m},y.interpolate=function(t){return arguments.length?(h=t,g()):h},g()}},"./node_modules/taucharts/node_modules/d3-scale/src/cubehelix.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-color/src/index.js"),i=n("./node_modules/d3-interpolate/index.js");e.default=Object(i.interpolateCubehelixLong)(Object(r.cubehelix)(300,.5,0),Object(r.cubehelix)(-240,.5,1))},"./node_modules/taucharts/node_modules/d3-scale/src/identity.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-scale/src/array.js"),i=n("./node_modules/taucharts/node_modules/d3-scale/src/linear.js"),o=n("./node_modules/taucharts/node_modules/d3-scale/src/number.js");function a(){var t=[0,1];function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=r.map.call(n,o.default),e):t.slice()},e.copy=function(){return a().domain(t)},Object(i.linearish)(e)}},"./node_modules/taucharts/node_modules/d3-scale/src/linear.js":function(t,e,n){"use strict";n.r(e),n.d(e,"linearish",function(){return s}),n.d(e,"default",function(){return u});var r=n("./node_modules/d3-array/index.js"),i=n("./node_modules/d3-interpolate/index.js"),o=n("./node_modules/taucharts/node_modules/d3-scale/src/continuous.js"),a=n("./node_modules/taucharts/node_modules/d3-scale/src/tickFormat.js");function s(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(r.ticks)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return Object(a.default)(e(),t,n)},t.nice=function(n){null==n&&(n=10);var i,o=e(),a=0,s=o.length-1,u=o[a],c=o[s];return c0?(u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i,i=Object(r.tickIncrement)(u,c,n)):i<0&&(u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i,i=Object(r.tickIncrement)(u,c,n)),i>0?(o[a]=Math.floor(u/i)*i,o[s]=Math.ceil(c/i)*i,e(o)):i<0&&(o[a]=Math.ceil(u*i)/i,o[s]=Math.floor(c*i)/i,e(o)),t},t}function u(){var t=Object(o.default)(o.deinterpolateLinear,i.interpolateNumber);return t.copy=function(){return Object(o.copy)(t,u())},s(t)}},"./node_modules/taucharts/node_modules/d3-scale/src/log.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return h});var r=n("./node_modules/d3-array/index.js"),i=n("./node_modules/taucharts/node_modules/d3-format/src/index.js"),o=n("./node_modules/taucharts/node_modules/d3-scale/src/constant.js"),a=n("./node_modules/taucharts/node_modules/d3-scale/src/nice.js"),s=n("./node_modules/taucharts/node_modules/d3-scale/src/continuous.js");function u(t,e){return(e=Math.log(e/t))?function(n){return Math.log(n/t)/e}:Object(o.default)(e)}function c(t,e){return t<0?function(n){return-Math.pow(-e,n)*Math.pow(-t,1-n)}:function(n){return Math.pow(e,n)*Math.pow(t,1-n)}}function l(t){return isFinite(t)?+("1e"+t):t<0?0:t}function d(t){return 10===t?l:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function p(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function f(t){return function(e){return-t(-e)}}function h(){var t=Object(s.default)(u,c).domain([1,10]),e=t.domain,n=10,o=p(10),l=d(10);function m(){return o=p(n),l=d(n),e()[0]<0&&(o=f(o),l=f(l)),t}return t.base=function(t){return arguments.length?(n=+t,m()):n},t.domain=function(t){return arguments.length?(e(t),m()):e()},t.ticks=function(t){var i,a=e(),s=a[0],u=a[a.length-1];(i=u0){for(;fu)break;g.push(p)}}else for(;f=1;--d)if(!((p=c*d)u)break;g.push(p)}}else g=Object(r.ticks)(f,h,Math.min(h-f,m)).map(l);return i?g.reverse():g},t.tickFormat=function(e,r){if(null==r&&(r=10===n?".0e":","),"function"!=typeof r&&(r=Object(i.format)(r)),e===1/0)return r;null==e&&(e=10);var a=Math.max(1,n*e/t.ticks().length);return function(t){var e=t/l(Math.round(o(t)));return e*n0?n[i-1]:t[0],i=n?[s[n-1],e]:[s[i-1],s[i]]},c.copy=function(){return a().domain([t,e]).range(u)},Object(o.linearish)(c)}},"./node_modules/taucharts/node_modules/d3-scale/src/rainbow.js":function(t,e,n){"use strict";n.r(e),n.d(e,"warm",function(){return o}),n.d(e,"cool",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-color/src/index.js"),i=n("./node_modules/d3-interpolate/index.js"),o=Object(i.interpolateCubehelixLong)(Object(r.cubehelix)(-100,.75,.35),Object(r.cubehelix)(80,1.5,.8)),a=Object(i.interpolateCubehelixLong)(Object(r.cubehelix)(260,.75,.35),Object(r.cubehelix)(80,1.5,.8)),s=Object(r.cubehelix)();e.default=function(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return s.h=360*t-100,s.s=1.5-1.5*e,s.l=.8-.9*e,s+""}},"./node_modules/taucharts/node_modules/d3-scale/src/sequential.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return i});var r=n("./node_modules/taucharts/node_modules/d3-scale/src/linear.js");function i(t){var e=0,n=1,o=!1;function a(r){var i=(r-e)/(n-e);return t(o?Math.max(0,Math.min(1,i)):i)}return a.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],a):[e,n]},a.clamp=function(t){return arguments.length?(o=!!t,a):o},a.interpolator=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return i(t).domain([e,n]).clamp(o)},Object(r.linearish)(a)}},"./node_modules/taucharts/node_modules/d3-scale/src/threshold.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return o});var r=n("./node_modules/d3-array/index.js"),i=n("./node_modules/taucharts/node_modules/d3-scale/src/array.js");function o(){var t=[.5],e=[0,1],n=1;function a(i){if(i<=i)return e[Object(r.bisect)(t,i,0,n)]}return a.domain=function(r){return arguments.length?(t=i.slice.call(r),n=Math.min(t.length,e.length-1),a):t.slice()},a.range=function(r){return arguments.length?(e=i.slice.call(r),n=Math.min(t.length,e.length-1),a):e.slice()},a.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},a.copy=function(){return o().domain(t).range(e)},a}},"./node_modules/taucharts/node_modules/d3-scale/src/tickFormat.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-array/index.js"),i=n("./node_modules/taucharts/node_modules/d3-format/src/index.js");e.default=function(t,e,n){var o,a=t[0],s=t[t.length-1],u=Object(r.tickStep)(a,s,null==e?10:e);switch((n=Object(i.formatSpecifier)(null==n?",f":n)).type){case"s":var c=Math.max(Math.abs(a),Math.abs(s));return null!=n.precision||isNaN(o=Object(i.precisionPrefix)(u,c))||(n.precision=o),Object(i.formatPrefix)(n,c);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=Object(i.precisionRound)(u,Math.max(Math.abs(a),Math.abs(s))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=Object(i.precisionFixed)(u))||(n.precision=o-2*("%"===n.type))}return Object(i.format)(n)}},"./node_modules/taucharts/node_modules/d3-scale/src/time.js":function(t,e,n){"use strict";n.r(e),n.d(e,"calendar",function(){return v});var r=n("./node_modules/d3-array/index.js"),i=n("./node_modules/d3-interpolate/index.js"),o=n("./node_modules/taucharts/node_modules/d3-time/src/index.js"),a=n("./node_modules/taucharts/node_modules/d3-time-format/src/index.js"),s=n("./node_modules/taucharts/node_modules/d3-scale/src/array.js"),u=n("./node_modules/taucharts/node_modules/d3-scale/src/continuous.js"),c=n("./node_modules/taucharts/node_modules/d3-scale/src/nice.js"),l=1e3,d=60*l,p=60*d,f=24*p,h=7*f,m=30*f,g=365*f;function y(t){return new Date(t)}function _(t){return t instanceof Date?+t:+new Date(+t)}function v(t,e,n,o,a,b,x,w,j){var O=Object(u.default)(u.deinterpolateLinear,i.interpolateNumber),C=O.invert,E=O.domain,S=j(".%L"),M=j(":%S"),T=j("%I:%M"),k=j("%I %p"),A=j("%a %d"),D=j("%b %d"),I=j("%B"),P=j("%Y"),R=[[x,1,l],[x,5,5*l],[x,15,15*l],[x,30,30*l],[b,1,d],[b,5,5*d],[b,15,15*d],[b,30,30*d],[a,1,p],[a,3,3*p],[a,6,6*p],[a,12,12*p],[o,1,f],[o,2,2*f],[n,1,h],[e,1,m],[e,3,3*m],[t,1,g]];function N(r){return(x(r)A*A+D*D&&(C=S,E=M),{cx:C,cy:E,x01:-d,y01:-p,x11:C*(i/w-1),y11:E*(i/w-1)}}e.default=function(){var t=a,e=s,n=Object(i.default)(0),p=null,f=u,h=c,m=l,g=null;function y(){var i,a,s=+t.apply(this,arguments),u=+e.apply(this,arguments),c=f.apply(this,arguments)-o.halfPi,l=h.apply(this,arguments)-o.halfPi,y=Object(o.abs)(l-c),_=l>c;if(g||(g=i=Object(r.path)()),uo.epsilon)if(y>o.tau-o.epsilon)g.moveTo(u*Object(o.cos)(c),u*Object(o.sin)(c)),g.arc(0,0,u,c,l,!_),s>o.epsilon&&(g.moveTo(s*Object(o.cos)(l),s*Object(o.sin)(l)),g.arc(0,0,s,l,c,_));else{var v,b,x=c,w=l,j=c,O=l,C=y,E=y,S=m.apply(this,arguments)/2,M=S>o.epsilon&&(p?+p.apply(this,arguments):Object(o.sqrt)(s*s+u*u)),T=Object(o.min)(Object(o.abs)(u-s)/2,+n.apply(this,arguments)),k=T,A=T;if(M>o.epsilon){var D=Object(o.asin)(M/s*Object(o.sin)(S)),I=Object(o.asin)(M/u*Object(o.sin)(S));(C-=2*D)>o.epsilon?(j+=D*=_?1:-1,O-=D):(C=0,j=O=(c+l)/2),(E-=2*I)>o.epsilon?(x+=I*=_?1:-1,w-=I):(E=0,x=w=(c+l)/2)}var P=u*Object(o.cos)(x),R=u*Object(o.sin)(x),N=s*Object(o.cos)(O),F=s*Object(o.sin)(O);if(T>o.epsilon){var L,B=u*Object(o.cos)(w),V=u*Object(o.sin)(w),z=s*Object(o.cos)(j),H=s*Object(o.sin)(j);if(yo.epsilon?A>o.epsilon?(v=d(z,H,P,R,u,A,_),b=d(B,V,N,F,u,A,_),g.moveTo(v.cx+v.x01,v.cy+v.y01),Ao.epsilon&&C>o.epsilon?k>o.epsilon?(v=d(N,F,B,V,s,-k,_),b=d(P,R,z,H,s,-k,_),g.lineTo(v.cx+v.x01,v.cy+v.y01),k=a;--s)p.point(y[s],_[s]);p.lineEnd(),p.areaEnd()}g&&(y[o]=+t(f,o,i),_[o]=+n(f,o,i),p.point(e?+e(f,o,i):y[o],u?+u(f,o,i):_[o]))}if(h)return p=null,h+""||null}function h(){return Object(a.default)().defined(c).curve(d).context(l)}return f.x=function(n){return arguments.length?(t="function"==typeof n?n:Object(i.default)(+n),e=null,f):t},f.x0=function(e){return arguments.length?(t="function"==typeof e?e:Object(i.default)(+e),f):t},f.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Object(i.default)(+t),f):e},f.y=function(t){return arguments.length?(n="function"==typeof t?t:Object(i.default)(+t),u=null,f):n},f.y0=function(t){return arguments.length?(n="function"==typeof t?t:Object(i.default)(+t),f):n},f.y1=function(t){return arguments.length?(u=null==t?null:"function"==typeof t?t:Object(i.default)(+t),f):u},f.lineX0=f.lineY0=function(){return h().x(t).y(n)},f.lineY1=function(){return h().x(t).y(u)},f.lineX1=function(){return h().x(e).y(n)},f.defined=function(t){return arguments.length?(c="function"==typeof t?t:Object(i.default)(!!t),f):c},f.curve=function(t){return arguments.length?(d=t,null!=l&&(p=d(l)),f):d},f.context=function(t){return arguments.length?(null==t?l=p=null:p=d(l=t),f):l},f}},"./node_modules/taucharts/node_modules/d3-shape/src/areaRadial.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/radial.js"),i=n("./node_modules/taucharts/node_modules/d3-shape/src/area.js"),o=n("./node_modules/taucharts/node_modules/d3-shape/src/lineRadial.js");e.default=function(){var t=Object(i.default)().curve(r.curveRadialLinear),e=t.curve,n=t.lineX0,a=t.lineX1,s=t.lineY0,u=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Object(o.lineRadial)(n())},delete t.lineX0,t.lineEndAngle=function(){return Object(o.lineRadial)(a())},delete t.lineX1,t.lineInnerRadius=function(){return Object(o.lineRadial)(s())},delete t.lineY0,t.lineOuterRadius=function(){return Object(o.lineRadial)(u())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Object(r.default)(t)):e()._curve},t}},"./node_modules/taucharts/node_modules/d3-shape/src/array.js":function(t,e,n){"use strict";n.r(e),n.d(e,"slice",function(){return r});var r=Array.prototype.slice},"./node_modules/taucharts/node_modules/d3-shape/src/constant.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){return function(){return t}}},"./node_modules/taucharts/node_modules/d3-shape/src/curve/basis.js":function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function i(t){this._context=t}n.r(e),n.d(e,"point",function(){return r}),n.d(e,"Basis",function(){return i}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e.default=function(t){return new i(t)}},"./node_modules/taucharts/node_modules/d3-shape/src/curve/basisClosed.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/noop.js"),i=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/basis.js");function o(t){this._context=t}o.prototype={areaStart:r.default,areaEnd:r.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Object(i.point)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e.default=function(t){return new o(t)}},"./node_modules/taucharts/node_modules/d3-shape/src/curve/basisOpen.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/basis.js");function i(t){this._context=t}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Object(r.point)(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},e.default=function(t){return new i(t)}},"./node_modules/taucharts/node_modules/d3-shape/src/curve/bundle.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/basis.js");function i(t,e){this._basis=new r.Basis(t),this._beta=e}i.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}},e.default=function t(e){function n(t){return 1===e?new r.Basis(t):new i(t,e)}return n.beta=function(e){return t(+e)},n}(.85)},"./node_modules/taucharts/node_modules/d3-shape/src/curve/cardinal.js":function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function i(t,e){this._context=t,this._k=(1-e)/6}n.r(e),n.d(e,"point",function(){return r}),n.d(e,"Cardinal",function(){return i}),i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:r(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.default=function t(e){function n(t){return new i(t,e)}return n.tension=function(e){return t(+e)},n}(0)},"./node_modules/taucharts/node_modules/d3-shape/src/curve/cardinalClosed.js":function(t,e,n){"use strict";n.r(e),n.d(e,"CardinalClosed",function(){return o});var r=n("./node_modules/taucharts/node_modules/d3-shape/src/noop.js"),i=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/cardinal.js");function o(t,e){this._context=t,this._k=(1-e)/6}o.prototype={areaStart:r.default,areaEnd:r.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(i.point)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.default=function t(e){function n(t){return new o(t,e)}return n.tension=function(e){return t(+e)},n}(0)},"./node_modules/taucharts/node_modules/d3-shape/src/curve/cardinalOpen.js":function(t,e,n){"use strict";n.r(e),n.d(e,"CardinalOpen",function(){return i});var r=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/cardinal.js");function i(t,e){this._context=t,this._k=(1-e)/6}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(r.point)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.default=function t(e){function n(t){return new i(t,e)}return n.tension=function(e){return t(+e)},n}(0)},"./node_modules/taucharts/node_modules/d3-shape/src/curve/catmullRom.js":function(t,e,n){"use strict";n.r(e),n.d(e,"point",function(){return o});var r=n("./node_modules/taucharts/node_modules/d3-shape/src/math.js"),i=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/cardinal.js");function o(t,e,n){var i=t._x1,o=t._y1,a=t._x2,s=t._y2;if(t._l01_a>r.epsilon){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,o=(o*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>r.epsilon){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/d,s=(s*l+t._y1*t._l23_2a-n*t._l12_2a)/d}t._context.bezierCurveTo(i,o,a,s,t._x2,t._y2)}function a(t,e){this._context=t,this._alpha=e}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:o(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.default=function t(e){function n(t){return e?new a(t,e):new i.Cardinal(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},"./node_modules/taucharts/node_modules/d3-shape/src/curve/catmullRomClosed.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/cardinalClosed.js"),i=n("./node_modules/taucharts/node_modules/d3-shape/src/noop.js"),o=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/catmullRom.js");function a(t,e){this._context=t,this._alpha=e}a.prototype={areaStart:i.default,areaEnd:i.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(o.point)(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.default=function t(e){function n(t){return e?new a(t,e):new r.CardinalClosed(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},"./node_modules/taucharts/node_modules/d3-shape/src/curve/catmullRomOpen.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/cardinalOpen.js"),i=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/catmullRom.js");function o(t,e){this._context=t,this._alpha=e}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(i.point)(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},e.default=function t(e){function n(t){return e?new o(t,e):new r.CardinalOpen(t,0)}return n.alpha=function(e){return t(+e)},n}(.5)},"./node_modules/taucharts/node_modules/d3-shape/src/curve/linear.js":function(t,e,n){"use strict";function r(t){this._context=t}n.r(e),r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},e.default=function(t){return new r(t)}},"./node_modules/taucharts/node_modules/d3-shape/src/curve/linearClosed.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/noop.js");function i(t){this._context=t}i.prototype={areaStart:r.default,areaEnd:r.default,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},e.default=function(t){return new i(t)}},"./node_modules/taucharts/node_modules/d3-shape/src/curve/monotone.js":function(t,e,n){"use strict";function r(t){return t<0?-1:1}function i(t,e,n){var i=t._x1-t._x0,o=e-t._x1,a=(t._y1-t._y0)/(i||o<0&&-0),s=(n-t._y1)/(o||i<0&&-0),u=(a*o+s*i)/(i+o);return(r(a)+r(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(u))||0}function o(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function a(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function s(t){this._context=t}function u(t){this._context=new c(t)}function c(t){this._context=t}function l(t){return new s(t)}function d(t){return new u(t)}n.r(e),n.d(e,"monotoneX",function(){return l}),n.d(e,"monotoneY",function(){return d}),s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,o(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,a(this,o(this,n=i(this,t,e)),n);break;default:a(this,this._t0,n=i(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(u.prototype=Object.create(s.prototype)).point=function(t,e){s.prototype.point.call(this,e,t)},c.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}}},"./node_modules/taucharts/node_modules/d3-shape/src/curve/natural.js":function(t,e,n){"use strict";function r(t){this._context=t}function i(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},e.default=function(t){return new r(t,.5)}},"./node_modules/taucharts/node_modules/d3-shape/src/descending.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return et?1:e>=t?0:NaN}},"./node_modules/taucharts/node_modules/d3-shape/src/identity.js":function(t,e,n){"use strict";n.r(e),e.default=function(t){return t}},"./node_modules/taucharts/node_modules/d3-shape/src/index.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/arc.js");n.d(e,"arc",function(){return r.default});var i=n("./node_modules/taucharts/node_modules/d3-shape/src/area.js");n.d(e,"area",function(){return i.default});var o=n("./node_modules/taucharts/node_modules/d3-shape/src/line.js");n.d(e,"line",function(){return o.default});var a=n("./node_modules/taucharts/node_modules/d3-shape/src/pie.js");n.d(e,"pie",function(){return a.default});var s=n("./node_modules/taucharts/node_modules/d3-shape/src/areaRadial.js");n.d(e,"areaRadial",function(){return s.default}),n.d(e,"radialArea",function(){return s.default});var u=n("./node_modules/taucharts/node_modules/d3-shape/src/lineRadial.js");n.d(e,"lineRadial",function(){return u.default}),n.d(e,"radialLine",function(){return u.default});var c=n("./node_modules/taucharts/node_modules/d3-shape/src/pointRadial.js");n.d(e,"pointRadial",function(){return c.default});var l=n("./node_modules/taucharts/node_modules/d3-shape/src/link/index.js");n.d(e,"linkHorizontal",function(){return l.linkHorizontal}),n.d(e,"linkVertical",function(){return l.linkVertical}),n.d(e,"linkRadial",function(){return l.linkRadial});var d=n("./node_modules/taucharts/node_modules/d3-shape/src/symbol.js");n.d(e,"symbol",function(){return d.default}),n.d(e,"symbols",function(){return d.symbols});var p=n("./node_modules/taucharts/node_modules/d3-shape/src/symbol/circle.js");n.d(e,"symbolCircle",function(){return p.default});var f=n("./node_modules/taucharts/node_modules/d3-shape/src/symbol/cross.js");n.d(e,"symbolCross",function(){return f.default});var h=n("./node_modules/taucharts/node_modules/d3-shape/src/symbol/diamond.js");n.d(e,"symbolDiamond",function(){return h.default});var m=n("./node_modules/taucharts/node_modules/d3-shape/src/symbol/square.js");n.d(e,"symbolSquare",function(){return m.default});var g=n("./node_modules/taucharts/node_modules/d3-shape/src/symbol/star.js");n.d(e,"symbolStar",function(){return g.default});var y=n("./node_modules/taucharts/node_modules/d3-shape/src/symbol/triangle.js");n.d(e,"symbolTriangle",function(){return y.default});var _=n("./node_modules/taucharts/node_modules/d3-shape/src/symbol/wye.js");n.d(e,"symbolWye",function(){return _.default});var v=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/basisClosed.js");n.d(e,"curveBasisClosed",function(){return v.default});var b=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/basisOpen.js");n.d(e,"curveBasisOpen",function(){return b.default});var x=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/basis.js");n.d(e,"curveBasis",function(){return x.default});var w=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/bundle.js");n.d(e,"curveBundle",function(){return w.default});var j=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/cardinalClosed.js");n.d(e,"curveCardinalClosed",function(){return j.default});var O=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/cardinalOpen.js");n.d(e,"curveCardinalOpen",function(){return O.default});var C=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/cardinal.js");n.d(e,"curveCardinal",function(){return C.default});var E=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/catmullRomClosed.js");n.d(e,"curveCatmullRomClosed",function(){return E.default});var S=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/catmullRomOpen.js");n.d(e,"curveCatmullRomOpen",function(){return S.default});var M=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/catmullRom.js");n.d(e,"curveCatmullRom",function(){return M.default});var T=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/linearClosed.js");n.d(e,"curveLinearClosed",function(){return T.default});var k=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/linear.js");n.d(e,"curveLinear",function(){return k.default});var A=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/monotone.js");n.d(e,"curveMonotoneX",function(){return A.monotoneX}),n.d(e,"curveMonotoneY",function(){return A.monotoneY});var D=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/natural.js");n.d(e,"curveNatural",function(){return D.default});var I=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/step.js");n.d(e,"curveStep",function(){return I.default}),n.d(e,"curveStepAfter",function(){return I.stepAfter}),n.d(e,"curveStepBefore",function(){return I.stepBefore});var P=n("./node_modules/taucharts/node_modules/d3-shape/src/stack.js");n.d(e,"stack",function(){return P.default});var R=n("./node_modules/taucharts/node_modules/d3-shape/src/offset/expand.js");n.d(e,"stackOffsetExpand",function(){return R.default});var N=n("./node_modules/taucharts/node_modules/d3-shape/src/offset/diverging.js");n.d(e,"stackOffsetDiverging",function(){return N.default});var F=n("./node_modules/taucharts/node_modules/d3-shape/src/offset/none.js");n.d(e,"stackOffsetNone",function(){return F.default});var L=n("./node_modules/taucharts/node_modules/d3-shape/src/offset/silhouette.js");n.d(e,"stackOffsetSilhouette",function(){return L.default});var B=n("./node_modules/taucharts/node_modules/d3-shape/src/offset/wiggle.js");n.d(e,"stackOffsetWiggle",function(){return B.default});var V=n("./node_modules/taucharts/node_modules/d3-shape/src/order/appearance.js");n.d(e,"stackOrderAppearance",function(){return V.default});var z=n("./node_modules/taucharts/node_modules/d3-shape/src/order/ascending.js");n.d(e,"stackOrderAscending",function(){return z.default});var H=n("./node_modules/taucharts/node_modules/d3-shape/src/order/descending.js");n.d(e,"stackOrderDescending",function(){return H.default});var U=n("./node_modules/taucharts/node_modules/d3-shape/src/order/insideOut.js");n.d(e,"stackOrderInsideOut",function(){return U.default});var W=n("./node_modules/taucharts/node_modules/d3-shape/src/order/none.js");n.d(e,"stackOrderNone",function(){return W.default});var q=n("./node_modules/taucharts/node_modules/d3-shape/src/order/reverse.js");n.d(e,"stackOrderReverse",function(){return q.default})},"./node_modules/taucharts/node_modules/d3-shape/src/line.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/d3-path/index.js"),i=n("./node_modules/taucharts/node_modules/d3-shape/src/constant.js"),o=n("./node_modules/taucharts/node_modules/d3-shape/src/curve/linear.js"),a=n("./node_modules/taucharts/node_modules/d3-shape/src/point.js");e.default=function(){var t=a.x,e=a.y,n=Object(i.default)(!0),s=null,u=o.default,c=null;function l(i){var o,a,l,d=i.length,p=!1;for(null==s&&(c=u(l=Object(r.path)())),o=0;o<=d;++o)!(o1?0:t<-1?d:Math.acos(t)}function m(t){return t>=1?p:t<=-1?-p:Math.asin(t)}},"./node_modules/taucharts/node_modules/d3-shape/src/noop.js":function(t,e,n){"use strict";n.r(e),e.default=function(){}},"./node_modules/taucharts/node_modules/d3-shape/src/offset/diverging.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){if((s=t.length)>0)for(var n,r,i,o,a,s,u=0,c=t[e[0]].length;u=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o}},"./node_modules/taucharts/node_modules/d3-shape/src/offset/expand.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/offset/none.js");e.default=function(t,e){if((i=t.length)>0){for(var n,i,o,a=0,s=t[0].length;a1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o0){for(var n,i=0,o=t[e[0]],a=o.length;i0&&(i=(n=t[e[0]]).length)>0){for(var n,i,o,a=0,s=1;so&&(o=e,r=n);return r}e.default=function(t){var e=t.map(i);return Object(r.default)(t).sort(function(t,n){return e[t]-e[n]})}},"./node_modules/taucharts/node_modules/d3-shape/src/order/ascending.js":function(t,e,n){"use strict";n.r(e),n.d(e,"sum",function(){return i});var r=n("./node_modules/taucharts/node_modules/d3-shape/src/order/none.js");function i(t){for(var e,n=0,r=-1,i=t.length;++r=0;)n[e]=e;return n}},"./node_modules/taucharts/node_modules/d3-shape/src/order/reverse.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/order/none.js");e.default=function(t){return Object(r.default)(t).reverse()}},"./node_modules/taucharts/node_modules/d3-shape/src/pie.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/constant.js"),i=n("./node_modules/taucharts/node_modules/d3-shape/src/descending.js"),o=n("./node_modules/taucharts/node_modules/d3-shape/src/identity.js"),a=n("./node_modules/taucharts/node_modules/d3-shape/src/math.js");e.default=function(){var t=o.default,e=i.default,n=null,s=Object(r.default)(0),u=Object(r.default)(a.tau),c=Object(r.default)(0);function l(r){var i,o,l,d,p,f=r.length,h=0,m=new Array(f),g=new Array(f),y=+s.apply(this,arguments),_=Math.min(a.tau,Math.max(-a.tau,u.apply(this,arguments)-y)),v=Math.min(Math.abs(_)/f,c.apply(this,arguments)),b=v*(_<0?-1:1);for(i=0;i0&&(h+=p);for(null!=e?m.sort(function(t,n){return e(g[t],g[n])}):null!=n&&m.sort(function(t,e){return n(r[t],r[e])}),i=0,l=h?(_-f*b)/h:0;i0?p*l:0)+b,g[o]={data:r[o],index:i,value:p,startAngle:y,endAngle:d,padAngle:v};return g}return l.value=function(e){return arguments.length?(t="function"==typeof e?e:Object(r.default)(+e),l):t},l.sortValues=function(t){return arguments.length?(e=t,n=null,l):e},l.sort=function(t){return arguments.length?(n=t,e=null,l):n},l.startAngle=function(t){return arguments.length?(s="function"==typeof t?t:Object(r.default)(+t),l):s},l.endAngle=function(t){return arguments.length?(u="function"==typeof t?t:Object(r.default)(+t),l):u},l.padAngle=function(t){return arguments.length?(c="function"==typeof t?t:Object(r.default)(+t),l):c},l}},"./node_modules/taucharts/node_modules/d3-shape/src/point.js":function(t,e,n){"use strict";function r(t){return t[0]}function i(t){return t[1]}n.r(e),n.d(e,"x",function(){return r}),n.d(e,"y",function(){return i})},"./node_modules/taucharts/node_modules/d3-shape/src/pointRadial.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}},"./node_modules/taucharts/node_modules/d3-shape/src/stack.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-shape/src/array.js"),i=n("./node_modules/taucharts/node_modules/d3-shape/src/constant.js"),o=n("./node_modules/taucharts/node_modules/d3-shape/src/offset/none.js"),a=n("./node_modules/taucharts/node_modules/d3-shape/src/order/none.js");function s(t,e){return t[e]}e.default=function(){var t=Object(i.default)([]),e=a.default,n=o.default,u=s;function c(r){var i,o,a=t.apply(this,arguments),s=r.length,c=a.length,l=new Array(c);for(i=0;i=12)]},Q:gt,s:yt,S:U,u:W,U:q,V:G,w:Y,W:K,x:null,X:null,y:X,Y:Q,Z:Z,"%":mt},Tt={a:function(t){return d[t.getUTCDay()]},A:function(t){return l[t.getUTCDay()]},b:function(t){return f[t.getUTCMonth()]},B:function(t){return p[t.getUTCMonth()]},c:null,d:$,e:$,f:rt,H:J,I:tt,j:et,L:nt,m:it,M:ot,p:function(t){return c[+(t.getUTCHours()>=12)]},Q:gt,s:yt,S:at,u:st,U:ut,V:ct,w:lt,W:dt,x:null,X:null,y:pt,Y:ft,Z:ht,"%":mt},kt={a:function(t,e,n){var r=wt.exec(e.slice(n));return r?(t.w=jt[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=bt.exec(e.slice(n));return r?(t.w=xt[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=Et.exec(e.slice(n));return r?(t.m=St[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=Ot.exec(e.slice(n));return r?(t.m=Ct[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return It(t,e,n,r)},d:C,e:C,f:A,H:S,I:S,j:E,L:k,m:O,M:M,p:function(t,e,n){var r=_t.exec(e.slice(n));return r?(t.p=vt[r[0].toLowerCase()],n+r[0].length):-1},Q:I,s:P,S:T,u:y,U:_,V:v,w:g,W:b,x:function(t,e,r){return It(t,n,e,r)},X:function(t,e,n){return It(t,s,e,n)},y:w,Y:x,Z:j,"%":D};function At(t,e){return function(n){var r,i,o,a=[],s=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in u||(u.w=1),"Z"in u?(i=(s=(i=o(a(u.y))).getUTCDay())>4||0===s?r.utcMonday.ceil(i):Object(r.utcMonday)(i),i=r.utcDay.offset(i,7*(u.V-1)),u.y=i.getUTCFullYear(),u.m=i.getUTCMonth(),u.d=i.getUTCDate()+(u.w+6)%7):(i=(s=(i=e(a(u.y))).getDay())>4||0===s?r.timeMonday.ceil(i):Object(r.timeMonday)(i),i=r.timeDay.offset(i,7*(u.V-1)),u.y=i.getFullYear(),u.m=i.getMonth(),u.d=i.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),s="Z"in u?o(a(u.y)).getUTCDay():e(a(u.y)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(s+5)%7:u.w+7*u.U-(s+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,o(u)):e(u)}}function It(t,e,n,r){for(var i,o,a=0,s=e.length,c=n.length;a=c)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=kt[i in u?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Mt.x=At(n,Mt),Mt.X=At(s,Mt),Mt.c=At(e,Mt),Tt.x=At(n,Tt),Tt.X=At(s,Tt),Tt.c=At(e,Tt),{format:function(t){var e=At(t+="",Mt);return e.toString=function(){return t},e},parse:function(t){var e=Dt(t+="",i);return e.toString=function(){return t},e},utcFormat:function(t){var e=At(t+="",Tt);return e.toString=function(){return t},e},utcParse:function(t){var e=Dt(t,o);return e.toString=function(){return t},e}}}var u={"-":"",_:" ",0:"0"},c=/^\s*\d+/,l=/^%/,d=/[\\^$*+?|[\]().{}]/g;function p(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function j(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function O(t,e,n){var r=c.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function C(t,e,n){var r=c.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function E(t,e,n){var r=c.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function S(t,e,n){var r=c.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function M(t,e,n){var r=c.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function T(t,e,n){var r=c.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function k(t,e,n){var r=c.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function A(t,e,n){var r=c.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function D(t,e,n){var r=l.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function I(t,e,n){var r=c.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function P(t,e,n){var r=c.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function R(t,e){return p(t.getDate(),e,2)}function N(t,e){return p(t.getHours(),e,2)}function F(t,e){return p(t.getHours()%12||12,e,2)}function L(t,e){return p(1+r.timeDay.count(Object(r.timeYear)(t),t),e,3)}function B(t,e){return p(t.getMilliseconds(),e,3)}function V(t,e){return B(t,e)+"000"}function z(t,e){return p(t.getMonth()+1,e,2)}function H(t,e){return p(t.getMinutes(),e,2)}function U(t,e){return p(t.getSeconds(),e,2)}function W(t){var e=t.getDay();return 0===e?7:e}function q(t,e){return p(r.timeSunday.count(Object(r.timeYear)(t),t),e,2)}function G(t,e){var n=t.getDay();return t=n>=4||0===n?Object(r.timeThursday)(t):r.timeThursday.ceil(t),p(r.timeThursday.count(Object(r.timeYear)(t),t)+(4===Object(r.timeYear)(t).getDay()),e,2)}function Y(t){return t.getDay()}function K(t,e){return p(r.timeMonday.count(Object(r.timeYear)(t),t),e,2)}function X(t,e){return p(t.getFullYear()%100,e,2)}function Q(t,e){return p(t.getFullYear()%1e4,e,4)}function Z(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+p(e/60|0,"0",2)+p(e%60,"0",2)}function $(t,e){return p(t.getUTCDate(),e,2)}function J(t,e){return p(t.getUTCHours(),e,2)}function tt(t,e){return p(t.getUTCHours()%12||12,e,2)}function et(t,e){return p(1+r.utcDay.count(Object(r.utcYear)(t),t),e,3)}function nt(t,e){return p(t.getUTCMilliseconds(),e,3)}function rt(t,e){return nt(t,e)+"000"}function it(t,e){return p(t.getUTCMonth()+1,e,2)}function ot(t,e){return p(t.getUTCMinutes(),e,2)}function at(t,e){return p(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function ut(t,e){return p(r.utcSunday.count(Object(r.utcYear)(t),t),e,2)}function ct(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Object(r.utcThursday)(t):r.utcThursday.ceil(t),p(r.utcThursday.count(Object(r.utcYear)(t),t)+(4===Object(r.utcYear)(t).getUTCDay()),e,2)}function lt(t){return t.getUTCDay()}function dt(t,e){return p(r.utcMonday.count(Object(r.utcYear)(t),t),e,2)}function pt(t,e){return p(t.getUTCFullYear()%100,e,2)}function ft(t,e){return p(t.getUTCFullYear()%1e4,e,4)}function ht(){return"+0000"}function mt(){return"%"}function gt(t){return+t}function yt(t){return Math.floor(+t/1e3)}},"./node_modules/taucharts/node_modules/d3-time/src/day.js":function(t,e,n){"use strict";n.r(e),n.d(e,"days",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=n("./node_modules/taucharts/node_modules/d3-time/src/duration.js"),o=Object(r.default)(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.durationMinute)/i.durationDay},function(t){return t.getDate()-1});e.default=o;var a=o.range},"./node_modules/taucharts/node_modules/d3-time/src/duration.js":function(t,e,n){"use strict";n.r(e),n.d(e,"durationSecond",function(){return r}),n.d(e,"durationMinute",function(){return i}),n.d(e,"durationHour",function(){return o}),n.d(e,"durationDay",function(){return a}),n.d(e,"durationWeek",function(){return s});var r=1e3,i=6e4,o=36e5,a=864e5,s=6048e5},"./node_modules/taucharts/node_modules/d3-time/src/hour.js":function(t,e,n){"use strict";n.r(e),n.d(e,"hours",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=n("./node_modules/taucharts/node_modules/d3-time/src/duration.js"),o=Object(r.default)(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.durationSecond-t.getMinutes()*i.durationMinute)},function(t,e){t.setTime(+t+e*i.durationHour)},function(t,e){return(e-t)/i.durationHour},function(t){return t.getHours()});e.default=o;var a=o.range},"./node_modules/taucharts/node_modules/d3-time/src/index.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js");n.d(e,"timeInterval",function(){return r.default});var i=n("./node_modules/taucharts/node_modules/d3-time/src/millisecond.js");n.d(e,"timeMillisecond",function(){return i.default}),n.d(e,"timeMilliseconds",function(){return i.milliseconds}),n.d(e,"utcMillisecond",function(){return i.default}),n.d(e,"utcMilliseconds",function(){return i.milliseconds});var o=n("./node_modules/taucharts/node_modules/d3-time/src/second.js");n.d(e,"timeSecond",function(){return o.default}),n.d(e,"timeSeconds",function(){return o.seconds}),n.d(e,"utcSecond",function(){return o.default}),n.d(e,"utcSeconds",function(){return o.seconds});var a=n("./node_modules/taucharts/node_modules/d3-time/src/minute.js");n.d(e,"timeMinute",function(){return a.default}),n.d(e,"timeMinutes",function(){return a.minutes});var s=n("./node_modules/taucharts/node_modules/d3-time/src/hour.js");n.d(e,"timeHour",function(){return s.default}),n.d(e,"timeHours",function(){return s.hours});var u=n("./node_modules/taucharts/node_modules/d3-time/src/day.js");n.d(e,"timeDay",function(){return u.default}),n.d(e,"timeDays",function(){return u.days});var c=n("./node_modules/taucharts/node_modules/d3-time/src/week.js");n.d(e,"timeWeek",function(){return c.sunday}),n.d(e,"timeWeeks",function(){return c.sundays}),n.d(e,"timeSunday",function(){return c.sunday}),n.d(e,"timeSundays",function(){return c.sundays}),n.d(e,"timeMonday",function(){return c.monday}),n.d(e,"timeMondays",function(){return c.mondays}),n.d(e,"timeTuesday",function(){return c.tuesday}),n.d(e,"timeTuesdays",function(){return c.tuesdays}),n.d(e,"timeWednesday",function(){return c.wednesday}),n.d(e,"timeWednesdays",function(){return c.wednesdays}),n.d(e,"timeThursday",function(){return c.thursday}),n.d(e,"timeThursdays",function(){return c.thursdays}),n.d(e,"timeFriday",function(){return c.friday}),n.d(e,"timeFridays",function(){return c.fridays}),n.d(e,"timeSaturday",function(){return c.saturday}),n.d(e,"timeSaturdays",function(){return c.saturdays});var l=n("./node_modules/taucharts/node_modules/d3-time/src/month.js");n.d(e,"timeMonth",function(){return l.default}),n.d(e,"timeMonths",function(){return l.months});var d=n("./node_modules/taucharts/node_modules/d3-time/src/year.js");n.d(e,"timeYear",function(){return d.default}),n.d(e,"timeYears",function(){return d.years});var p=n("./node_modules/taucharts/node_modules/d3-time/src/utcMinute.js");n.d(e,"utcMinute",function(){return p.default}),n.d(e,"utcMinutes",function(){return p.utcMinutes});var f=n("./node_modules/taucharts/node_modules/d3-time/src/utcHour.js");n.d(e,"utcHour",function(){return f.default}),n.d(e,"utcHours",function(){return f.utcHours});var h=n("./node_modules/taucharts/node_modules/d3-time/src/utcDay.js");n.d(e,"utcDay",function(){return h.default}),n.d(e,"utcDays",function(){return h.utcDays});var m=n("./node_modules/taucharts/node_modules/d3-time/src/utcWeek.js");n.d(e,"utcWeek",function(){return m.utcSunday}),n.d(e,"utcWeeks",function(){return m.utcSundays}),n.d(e,"utcSunday",function(){return m.utcSunday}),n.d(e,"utcSundays",function(){return m.utcSundays}),n.d(e,"utcMonday",function(){return m.utcMonday}),n.d(e,"utcMondays",function(){return m.utcMondays}),n.d(e,"utcTuesday",function(){return m.utcTuesday}),n.d(e,"utcTuesdays",function(){return m.utcTuesdays}),n.d(e,"utcWednesday",function(){return m.utcWednesday}),n.d(e,"utcWednesdays",function(){return m.utcWednesdays}),n.d(e,"utcThursday",function(){return m.utcThursday}),n.d(e,"utcThursdays",function(){return m.utcThursdays}),n.d(e,"utcFriday",function(){return m.utcFriday}),n.d(e,"utcFridays",function(){return m.utcFridays}),n.d(e,"utcSaturday",function(){return m.utcSaturday}),n.d(e,"utcSaturdays",function(){return m.utcSaturdays});var g=n("./node_modules/taucharts/node_modules/d3-time/src/utcMonth.js");n.d(e,"utcMonth",function(){return g.default}),n.d(e,"utcMonths",function(){return g.utcMonths});var y=n("./node_modules/taucharts/node_modules/d3-time/src/utcYear.js");n.d(e,"utcYear",function(){return y.default}),n.d(e,"utcYears",function(){return y.utcYears})},"./node_modules/taucharts/node_modules/d3-time/src/interval.js":function(t,e,n){"use strict";n.r(e),n.d(e,"default",function(){return o});var r=new Date,i=new Date;function o(t,e,n,a){function s(e){return t(e=new Date(+e)),e}return s.floor=s,s.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)},function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})},n&&(s.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?function(e){return a(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}},"./node_modules/taucharts/node_modules/d3-time/src/millisecond.js":function(t,e,n){"use strict";n.r(e),n.d(e,"milliseconds",function(){return o});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=Object(r.default)(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Object(r.default)(function(e){e.setTime(Math.floor(e/t)*t)},function(e,n){e.setTime(+e+n*t)},function(e,n){return(n-e)/t}):i:null},e.default=i;var o=i.range},"./node_modules/taucharts/node_modules/d3-time/src/minute.js":function(t,e,n){"use strict";n.r(e),n.d(e,"minutes",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=n("./node_modules/taucharts/node_modules/d3-time/src/duration.js"),o=Object(r.default)(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.durationSecond)},function(t,e){t.setTime(+t+e*i.durationMinute)},function(t,e){return(e-t)/i.durationMinute},function(t){return t.getMinutes()});e.default=o;var a=o.range},"./node_modules/taucharts/node_modules/d3-time/src/month.js":function(t,e,n){"use strict";n.r(e),n.d(e,"months",function(){return o});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=Object(r.default)(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});e.default=i;var o=i.range},"./node_modules/taucharts/node_modules/d3-time/src/second.js":function(t,e,n){"use strict";n.r(e),n.d(e,"seconds",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=n("./node_modules/taucharts/node_modules/d3-time/src/duration.js"),o=Object(r.default)(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*i.durationSecond)},function(t,e){return(e-t)/i.durationSecond},function(t){return t.getUTCSeconds()});e.default=o;var a=o.range},"./node_modules/taucharts/node_modules/d3-time/src/utcDay.js":function(t,e,n){"use strict";n.r(e),n.d(e,"utcDays",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=n("./node_modules/taucharts/node_modules/d3-time/src/duration.js"),o=Object(r.default)(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/i.durationDay},function(t){return t.getUTCDate()-1});e.default=o;var a=o.range},"./node_modules/taucharts/node_modules/d3-time/src/utcHour.js":function(t,e,n){"use strict";n.r(e),n.d(e,"utcHours",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=n("./node_modules/taucharts/node_modules/d3-time/src/duration.js"),o=Object(r.default)(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*i.durationHour)},function(t,e){return(e-t)/i.durationHour},function(t){return t.getUTCHours()});e.default=o;var a=o.range},"./node_modules/taucharts/node_modules/d3-time/src/utcMinute.js":function(t,e,n){"use strict";n.r(e),n.d(e,"utcMinutes",function(){return a});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=n("./node_modules/taucharts/node_modules/d3-time/src/duration.js"),o=Object(r.default)(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*i.durationMinute)},function(t,e){return(e-t)/i.durationMinute},function(t){return t.getUTCMinutes()});e.default=o;var a=o.range},"./node_modules/taucharts/node_modules/d3-time/src/utcMonth.js":function(t,e,n){"use strict";n.r(e),n.d(e,"utcMonths",function(){return o});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=Object(r.default)(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});e.default=i;var o=i.range},"./node_modules/taucharts/node_modules/d3-time/src/utcWeek.js":function(t,e,n){"use strict";n.r(e),n.d(e,"utcSunday",function(){return a}),n.d(e,"utcMonday",function(){return s}),n.d(e,"utcTuesday",function(){return u}),n.d(e,"utcWednesday",function(){return c}),n.d(e,"utcThursday",function(){return l}),n.d(e,"utcFriday",function(){return d}),n.d(e,"utcSaturday",function(){return p}),n.d(e,"utcSundays",function(){return f}),n.d(e,"utcMondays",function(){return h}),n.d(e,"utcTuesdays",function(){return m}),n.d(e,"utcWednesdays",function(){return g}),n.d(e,"utcThursdays",function(){return y}),n.d(e,"utcFridays",function(){return _}),n.d(e,"utcSaturdays",function(){return v});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=n("./node_modules/taucharts/node_modules/d3-time/src/duration.js");function o(t){return Object(r.default)(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+7*e)},function(t,e){return(e-t)/i.durationWeek})}var a=o(0),s=o(1),u=o(2),c=o(3),l=o(4),d=o(5),p=o(6),f=a.range,h=s.range,m=u.range,g=c.range,y=l.range,_=d.range,v=p.range},"./node_modules/taucharts/node_modules/d3-time/src/utcYear.js":function(t,e,n){"use strict";n.r(e),n.d(e,"utcYears",function(){return o});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=Object(r.default)(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.default)(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null},e.default=i;var o=i.range},"./node_modules/taucharts/node_modules/d3-time/src/week.js":function(t,e,n){"use strict";n.r(e),n.d(e,"sunday",function(){return a}),n.d(e,"monday",function(){return s}),n.d(e,"tuesday",function(){return u}),n.d(e,"wednesday",function(){return c}),n.d(e,"thursday",function(){return l}),n.d(e,"friday",function(){return d}),n.d(e,"saturday",function(){return p}),n.d(e,"sundays",function(){return f}),n.d(e,"mondays",function(){return h}),n.d(e,"tuesdays",function(){return m}),n.d(e,"wednesdays",function(){return g}),n.d(e,"thursdays",function(){return y}),n.d(e,"fridays",function(){return _}),n.d(e,"saturdays",function(){return v});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=n("./node_modules/taucharts/node_modules/d3-time/src/duration.js");function o(t){return Object(r.default)(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+7*e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.durationMinute)/i.durationWeek})}var a=o(0),s=o(1),u=o(2),c=o(3),l=o(4),d=o(5),p=o(6),f=a.range,h=s.range,m=u.range,g=c.range,y=l.range,_=d.range,v=p.range},"./node_modules/taucharts/node_modules/d3-time/src/year.js":function(t,e,n){"use strict";n.r(e),n.d(e,"years",function(){return o});var r=n("./node_modules/taucharts/node_modules/d3-time/src/interval.js"),i=Object(r.default)(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.default)(function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,n){e.setFullYear(e.getFullYear()+n*t)}):null},e.default=i;var o=i.range},"./node_modules/taucharts/node_modules/topojson-client/index.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/topojson-client/src/bbox.js");n.d(e,"bbox",function(){return r.default});var i=n("./node_modules/taucharts/node_modules/topojson-client/src/feature.js");n.d(e,"feature",function(){return i.default});var o=n("./node_modules/taucharts/node_modules/topojson-client/src/mesh.js");n.d(e,"mesh",function(){return o.default}),n.d(e,"meshArcs",function(){return o.meshArcs});var a=n("./node_modules/taucharts/node_modules/topojson-client/src/merge.js");n.d(e,"merge",function(){return a.default}),n.d(e,"mergeArcs",function(){return a.mergeArcs});var s=n("./node_modules/taucharts/node_modules/topojson-client/src/neighbors.js");n.d(e,"neighbors",function(){return s.default});var u=n("./node_modules/taucharts/node_modules/topojson-client/src/quantize.js");n.d(e,"quantize",function(){return u.default});var c=n("./node_modules/taucharts/node_modules/topojson-client/src/transform.js");n.d(e,"transform",function(){return c.default});var l=n("./node_modules/taucharts/node_modules/topojson-client/src/untransform.js");n.d(e,"untransform",function(){return l.default})},"./node_modules/taucharts/node_modules/topojson-client/src/bbox.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/taucharts/node_modules/topojson-client/src/transform.js");e.default=function(t){var e,n=Object(r.default)(t.transform),i=1/0,o=i,a=-i,s=-i;function u(t){(t=n(t))[0]a&&(a=t[0]),t[1]s&&(s=t[1])}function c(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(c);break;case"Point":u(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(u)}}t.arcs.forEach(function(t){for(var e,r=-1,u=t.length;++ra&&(a=e[0]),e[1]s&&(s=e[1])});for(e in t.objects)c(t.objects[e]);return[i,o,a,s]}},"./node_modules/taucharts/node_modules/topojson-client/src/bisect.js":function(t,e,n){"use strict";n.r(e),e.default=function(t,e){for(var n=0,r=t.length;n>>1;t[i]1)for(var a,s,c=1,l=u(o[0]);cl&&(s=o[0],o[0]=o[c],o[c]=s,l=a);return o})}}e.default=function(t){return Object(r.object)(t,o.apply(this,arguments))}},"./node_modules/taucharts/node_modules/topojson-client/src/mesh.js":function(t,e,n){"use strict";n.r(e),n.d(e,"meshArcs",function(){return o});var r=n("./node_modules/taucharts/node_modules/topojson-client/src/feature.js"),i=n("./node_modules/taucharts/node_modules/topojson-client/src/stitch.js");function o(t,e,n){var r,o,a;if(arguments.length>1)r=function(t,e,n){var r,i=[],o=[];function a(t){var e=t<0?~t:t;(o[e]||(o[e]=[])).push({i:t,g:r})}function s(t){t.forEach(a)}function u(t){t.forEach(s)}return function t(e){switch(r=e,e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"LineString":s(e.arcs);break;case"MultiLineString":case"Polygon":u(e.arcs);break;case"MultiPolygon":e.arcs.forEach(u)}}(e),o.forEach(null==n?function(t){i.push(t[0].i)}:function(t){n(t[0].g,t[t.length-1].g)&&i.push(t[0].i)}),i}(0,e,n);else for(o=0,r=new Array(a=t.arcs.length);o=2))throw new Error("n must be ≥2");var n,o=(c=t.bbox||Object(r.default)(t))[0],a=c[1],s=c[2],u=c[3];e={scale:[s-o?(s-o)/(n-1):1,u-a?(u-a)/(n-1):1],translate:[o,a]}}var c,l,d=Object(i.default)(e),p=t.objects,f={};function h(t){return d(t)}function m(t){var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(m)};break;case"Point":e={type:"Point",coordinates:h(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(h)};break;default:return t}return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}for(l in p)f[l]=m(p[l]);return{type:"Topology",bbox:c,transform:e,objects:f,arcs:t.arcs.map(function(t){var e,n=0,r=1,i=t.length,o=new Array(i);for(o[0]=d(t[0],0);++n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})}function d(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function h(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var t=[],e=0;e1||s(t,e)})})}function s(t,e){try{(n=i[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(t){l(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:g(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function v(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=f(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){var o,a,s,u;e=t[n](e),o=r,a=i,s=e.done,u=e.value,Promise.resolve(u).then(function(t){o({value:t,done:s})},a)})}}}function b(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function x(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function w(t){return t&&t.__esModule?t:{default:t}}}}]);